:root {
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-400: #fbbf24;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --stone-50: #fafaf9;
  --stone-100: #f5f5f4;
  --stone-200: #e7e5e4;
  --stone-300: #d6d3d1;
  --stone-400: #a8a29e;
  --stone-500: #78716c;
  --stone-600: #57534e;
  --stone-700: #44403c;
  --stone-800: #292524;
  --stone-900: #1c1917;
  --white: #ffffff;
  --black: #000000;
  --shadow-soft: 0 18px 45px rgba(41, 37, 36, 0.12);
  --shadow-card: 0 12px 30px rgba(41, 37, 36, 0.10);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--stone-800);
  background: linear-gradient(180deg, var(--amber-50), var(--stone-50) 42%, var(--white));
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 251, 235, 0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(214, 211, 209, 0.65);
  transition: box-shadow 0.2s ease, background 0.2s ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 30px rgba(41, 37, 36, 0.08);
}

.nav-wrap {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-500), var(--stone-700));
  border-radius: 999px;
  box-shadow: 0 10px 25px rgba(245, 158, 11, 0.32);
}

.brand-copy {
  display: grid;
  gap: 1px;
}

.brand-copy strong {
  font-size: 18px;
  color: var(--stone-900);
  letter-spacing: 0.02em;
}

.brand-copy small {
  font-size: 12px;
  color: var(--stone-500);
}

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

.nav-link,
.mobile-link {
  padding: 10px 16px;
  color: var(--stone-600);
  border-radius: 999px;
  font-weight: 600;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
  color: var(--amber-600);
  background: var(--amber-100);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 8px;
  border: 0;
  background: var(--stone-900);
  border-radius: 12px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--white);
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  padding: 0 16px 18px;
}

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

.hero {
  position: relative;
  min-height: 500px;
  overflow: hidden;
  background: var(--stone-900);
}

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

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

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

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 22%, rgba(245, 158, 11, 0.45), transparent 34%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.42) 45%, rgba(0, 0, 0, 0.20));
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding-bottom: 72px;
}

.hero-copy {
  max-width: 720px;
  color: var(--white);
}

.hero-labels,
.detail-labels,
.movie-tags,
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.hero-labels span,
.detail-labels span {
  display: inline-flex;
  padding: 6px 12px;
  color: var(--white);
  background: rgba(41, 37, 36, 0.76);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.hero-labels span:first-child,
.detail-labels span:first-child {
  background: var(--amber-500);
}

.hero h1 {
  margin: 16px 0 12px;
  font-size: clamp(34px, 6vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero p {
  max-width: 640px;
  margin: 0 0 26px;
  color: var(--stone-200);
  font-size: 18px;
}

.hero-actions,
.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

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

.primary-btn {
  color: var(--white);
  background: var(--amber-500);
  box-shadow: 0 16px 30px rgba(245, 158, 11, 0.28);
}

.primary-btn:hover {
  background: var(--amber-600);
  transform: translateY(-2px);
  box-shadow: 0 20px 38px rgba(245, 158, 11, 0.34);
}

.ghost-btn {
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.ghost-light-btn {
  color: var(--stone-900);
  background: rgba(255, 255, 255, 0.84);
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 26px;
  display: flex;
  gap: 10px;
  transform: translateX(-50%);
  z-index: 5;
}

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

.hero-dot.active {
  width: 28px;
  background: var(--amber-500);
}

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

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.eyebrow {
  display: inline-flex;
  margin-bottom: 8px;
  color: var(--amber-600);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-heading h2,
.page-hero h1,
.detail-panel h1,
.spotlight-panel h2 {
  margin: 0;
  color: var(--stone-900);
  line-height: 1.15;
}

.section-heading h2 {
  font-size: clamp(24px, 3vw, 34px);
}

.section-heading p,
.page-hero p,
.spotlight-panel p {
  margin: 8px 0 0;
  color: var(--stone-500);
}

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

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

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--stone-200);
  box-shadow: var(--shadow-card);
}

.poster-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease, filter 0.45s ease;
}

.movie-card:hover .poster-link img,
.category-card:hover img,
.list-card:hover img {
  transform: scale(1.08);
  filter: saturate(1.08);
}

.corner-badge,
.rank-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  max-width: calc(100% - 20px);
  padding: 4px 8px;
  color: var(--white);
  background: var(--amber-500);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rank-badge {
  left: 10px;
  right: auto;
  background: rgba(41, 37, 36, 0.82);
}

.poster-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: rgba(245, 158, 11, 0.92);
  border-radius: 999px;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.86);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .poster-play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.movie-card-body {
  padding: 10px 2px 0;
}

.movie-title {
  display: block;
  color: var(--stone-900);
  font-weight: 800;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.movie-title:hover,
.text-link:hover,
.list-title:hover,
.category-overview-title:hover {
  color: var(--amber-600);
}

.movie-card-body p {
  height: 42px;
  margin: 6px 0 8px;
  color: var(--stone-500);
  font-size: 13px;
  line-height: 1.55;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.movie-tags span,
.tag-cloud span {
  display: inline-flex;
  padding: 4px 8px;
  color: var(--stone-600);
  background: var(--stone-100);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

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

.category-card a {
  position: relative;
  min-height: 210px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--stone-900);
  box-shadow: var(--shadow-card);
}

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

.category-card:hover img {
  opacity: 0.78;
}

.category-card span,
.category-card p {
  position: relative;
  z-index: 1;
  margin-left: 18px;
  margin-right: 18px;
}

.category-card span {
  margin-bottom: 6px;
  color: var(--white);
  font-size: 22px;
  font-weight: 900;
}

.category-card p {
  margin-top: 0;
  margin-bottom: 18px;
  color: var(--stone-100);
  font-size: 14px;
}

.split-section {
  display: grid;
  grid-template-columns: 1.45fr 0.55fr;
  gap: 28px;
  align-items: start;
}

.spotlight-panel,
.detail-panel,
.poster-panel,
.side-card,
.filter-panel,
.category-overview-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(231, 229, 228, 0.95);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
}

.spotlight-panel {
  position: sticky;
  top: 100px;
  padding: 30px;
  background:
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.24), transparent 40%),
    linear-gradient(180deg, var(--white), var(--amber-50));
}

.spotlight-panel h2 {
  font-size: 32px;
}

.text-link {
  display: inline-flex;
  margin-top: 18px;
  color: var(--amber-600);
  font-weight: 900;
}

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

.small-rank {
  max-height: none;
}

.list-card {
  display: grid;
  grid-template-columns: auto 78px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 12px;
  background: rgba(255, 255, 255, 0.90);
  border: 1px solid rgba(231, 229, 228, 0.95);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 24px rgba(41, 37, 36, 0.06);
}

.list-rank {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-500), var(--stone-700));
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
}

.list-cover {
  display: block;
  width: 78px;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 12px;
  background: var(--stone-200);
}

.list-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.list-title {
  display: block;
  color: var(--stone-900);
  font-size: 17px;
  font-weight: 900;
}

.list-content p {
  margin: 4px 0 8px;
  color: var(--stone-500);
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.page-hero {
  padding: 76px 0 64px;
  color: var(--white);
  background:
    radial-gradient(circle at 20% 20%, rgba(245, 158, 11, 0.40), transparent 30%),
    linear-gradient(135deg, var(--stone-900), var(--stone-700));
}

.page-hero h1 {
  max-width: 860px;
  color: var(--white);
  font-size: clamp(34px, 5vw, 56px);
}

.page-hero p {
  max-width: 780px;
  color: var(--stone-200);
  font-size: 18px;
}

.filter-panel {
  margin-bottom: 26px;
  padding: 18px;
}

.search-field {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  height: 52px;
  color: var(--stone-500);
  background: var(--stone-50);
  border: 1px solid var(--stone-200);
  border-radius: 14px;
}

.search-field input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--stone-800);
}

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

.select-row label {
  display: grid;
  gap: 6px;
  color: var(--stone-500);
  font-size: 13px;
  font-weight: 800;
}

.select-row select {
  width: 100%;
  height: 46px;
  padding: 0 12px;
  color: var(--stone-800);
  background: var(--white);
  border: 1px solid var(--stone-200);
  border-radius: 12px;
  outline: 0;
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 20px;
  padding: 18px;
}

.category-overview-visual {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--stone-200);
}

.category-overview-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-overview-title {
  display: inline-flex;
  color: var(--stone-900);
  font-size: 22px;
  font-weight: 900;
}

.category-overview-card p {
  margin: 8px 0 14px;
  color: var(--stone-500);
}

.category-preview-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.category-preview-links a {
  padding: 5px 9px;
  color: var(--stone-600);
  background: var(--stone-100);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.detail-layout {
  padding: 28px 0 20px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 22px;
  color: var(--stone-500);
  font-size: 14px;
}

.breadcrumb a:hover {
  color: var(--amber-600);
}

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

.player-card {
  margin-bottom: 22px;
}

.video-shell {
  position: relative;
  overflow: hidden;
  background: var(--black);
  border-radius: var(--radius-xl);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.video-shell video {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  background: var(--black);
}

.video-cover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: var(--white);
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.28));
  cursor: pointer;
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

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

.video-play-icon {
  width: 78px;
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 4px;
  color: var(--white);
  background: var(--amber-500);
  border-radius: 999px;
  box-shadow: 0 22px 40px rgba(245, 158, 11, 0.35);
  font-size: 30px;
}

.detail-panel {
  padding: 28px;
}

.detail-panel h1 {
  margin-top: 14px;
  font-size: clamp(32px, 4vw, 48px);
}

.lead-text {
  margin: 14px 0 22px;
  color: var(--amber-600);
  font-size: 19px;
  font-weight: 800;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0;
  padding: 18px;
  background: var(--stone-50);
  border-radius: var(--radius-md);
}

.info-grid div {
  display: grid;
  gap: 2px;
}

.info-grid span {
  color: var(--stone-500);
  font-size: 12px;
  font-weight: 800;
}

.info-grid strong {
  color: var(--stone-900);
  font-size: 14px;
}

.tag-cloud {
  margin-bottom: 26px;
}

.detail-panel h2 {
  margin: 28px 0 10px;
  color: var(--stone-900);
  font-size: 24px;
}

.detail-panel p {
  color: var(--stone-600);
  font-size: 16px;
}

.detail-side {
  position: sticky;
  top: 98px;
  display: grid;
  gap: 18px;
}

.poster-panel {
  padding: 16px;
}

.poster-panel img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
}

.primary-btn.wide {
  width: 100%;
}

.side-card {
  padding: 22px;
}

.side-card h2 {
  margin: 0 0 14px;
  color: var(--stone-900);
  font-size: 20px;
}

.side-card a {
  display: block;
  padding: 10px 0;
  color: var(--stone-600);
  border-top: 1px solid var(--stone-100);
  font-weight: 700;
}

.side-card a:hover {
  color: var(--amber-600);
}

.site-footer {
  margin-top: 40px;
  color: var(--stone-300);
  background: var(--stone-900);
}

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

.footer-brand {
  color: var(--white);
  font-size: 20px;
}

.site-footer p {
  max-width: 520px;
  color: var(--stone-400);
}

.site-footer h2 {
  margin: 0 0 14px;
  color: var(--white);
  font-size: 16px;
}

.site-footer a:not(.footer-brand) {
  display: block;
  margin: 8px 0;
  color: var(--stone-400);
  font-size: 14px;
}

.site-footer a:hover {
  color: var(--amber-400);
}

.footer-bottom {
  padding: 18px 16px;
  text-align: center;
  color: var(--stone-500);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

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

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

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

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

  .detail-side,
  .spotlight-panel {
    position: static;
  }
}

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

  .nav-toggle {
    display: block;
  }

  .hero {
    min-height: 540px;
  }

  .hero-content {
    padding-bottom: 72px;
  }

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

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

  .category-overview-card {
    grid-template-columns: 130px 1fr;
  }

  .select-row,
  .info-grid {
    grid-template-columns: 1fr 1fr;
  }
}

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

  .brand-copy small {
    display: none;
  }

  .hero {
    min-height: 500px;
  }

  .hero p {
    font-size: 16px;
  }

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

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

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

  .category-card a {
    min-height: 180px;
  }

  .category-overview-card,
  .list-card {
    grid-template-columns: 92px 1fr;
  }

  .list-card .list-rank {
    grid-row: 1;
    grid-column: 1 / -1;
    width: auto;
    height: 30px;
    border-radius: 10px;
  }

  .category-overview-visual,
  .list-cover {
    width: 92px;
  }

  .select-row,
  .info-grid {
    grid-template-columns: 1fr;
  }

  .detail-panel,
  .filter-panel,
  .side-card,
  .poster-panel {
    padding: 18px;
    border-radius: var(--radius-lg);
  }

  .video-play-icon {
    width: 64px;
    height: 64px;
    font-size: 24px;
  }
}
