:root {
  --amber-950: #451a03;
  --amber-900: #78350f;
  --amber-800: #92400e;
  --amber-700: #b45309;
  --amber-600: #d97706;
  --amber-500: #f59e0b;
  --amber-300: #fcd34d;
  --amber-100: #fef3c7;
  --stone-950: #0c0a09;
  --stone-900: #1c1917;
  --stone-800: #292524;
  --stone-700: #44403c;
  --stone-600: #57534e;
  --stone-500: #78716c;
  --stone-300: #d6d3d1;
  --stone-200: #e7e5e4;
  --stone-100: #f5f5f4;
  --white: #ffffff;
  --shadow-soft: 0 18px 45px rgba(69, 26, 3, 0.13);
  --shadow-card: 0 12px 30px rgba(28, 25, 23, 0.12);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--stone-800);
  background: linear-gradient(180deg, #fffbeb 0%, var(--stone-100) 48%, #fff7ed 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #fff7ed;
  background: linear-gradient(90deg, var(--amber-900), var(--amber-800), var(--amber-900));
  box-shadow: 0 10px 30px rgba(69, 26, 3, 0.22);
}

.nav-shell {
  width: min(1180px, calc(100% - 32px));
  height: 64px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.logo-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--amber-950);
  background: linear-gradient(135deg, var(--amber-300), var(--amber-500));
  border-radius: 12px;
  box-shadow: 0 8px 22px rgba(245, 158, 11, 0.35);
}

.logo-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.logo-copy strong {
  font-size: 20px;
  letter-spacing: 0.03em;
}

.logo-copy small {
  margin-top: 2px;
  color: var(--amber-300);
  font-size: 12px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-weight: 600;
}

.desktop-nav a {
  color: #fff7ed;
  transition: color 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover {
  color: var(--amber-300);
  transform: translateY(-1px);
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 9px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.mobile-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: #fff7ed;
  border-radius: 99px;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 14px;
}

.mobile-nav a {
  display: block;
  padding: 10px 14px;
  border-radius: 12px;
  color: #fff7ed;
}

.mobile-nav a:hover {
  background: rgba(255, 255, 255, 0.1);
}

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

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

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

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

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

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 20%, rgba(245, 158, 11, 0.32), transparent 30%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.55) 45%, rgba(0, 0, 0, 0.1) 100%);
}

.hero-content {
  position: absolute;
  left: 50%;
  bottom: 52px;
  width: min(1180px, calc(100% - 32px));
  transform: translateX(-50%);
  color: #fff;
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  color: var(--amber-300);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.hero h1 {
  max-width: 850px;
  margin: 0 0 18px;
  font-size: clamp(34px, 6vw, 62px);
  line-height: 1.08;
  text-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.hero p {
  max-width: 780px;
  margin: 0 0 26px;
  color: var(--stone-200);
  font-size: clamp(16px, 2vw, 21px);
}

.hero-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.btn-primary,
.btn-secondary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 12px;
  border: 0;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  color: #fff;
  background: var(--amber-600);
  box-shadow: 0 12px 28px rgba(217, 119, 6, 0.35);
}

.btn-primary:hover {
  background: var(--amber-700);
  transform: translateY(-2px);
}

.btn-secondary {
  color: #fff;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(12px);
}

.btn-secondary:hover {
  background: rgba(0, 0, 0, 0.65);
  transform: translateY(-2px);
}

.btn-ghost {
  color: var(--amber-800);
  background: var(--amber-100);
}

.btn-ghost:hover {
  background: #ffedd5;
  transform: translateY(-2px);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: white;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(10px);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(0, 0, 0, 0.68);
  transform: translateY(-50%) scale(1.05);
}

.hero-arrow.prev {
  left: 22px;
  transform: translateY(-50%);
}

.hero-arrow.next {
  right: 22px;
  transform: translateY(-50%);
}

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

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

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

.main-wrap,
.page-wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 52px 0;
}

.section {
  margin-bottom: 62px;
}

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

.section-head > div {
  position: relative;
  padding-left: 18px;
}

.section-line {
  position: absolute;
  left: 0;
  top: 8px;
  width: 5px;
  height: 34px;
  border-radius: 999px;
  background: var(--amber-600);
}

.section-head h2 {
  margin: 0;
  color: var(--stone-800);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.2;
}

.section-head p {
  margin: 6px 0 0;
  color: var(--stone-600);
}

.section-link {
  color: var(--amber-700);
  font-weight: 700;
  white-space: nowrap;
}

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

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

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

.movie-card,
.compact-card,
.rank-item,
.category-card {
  background: white;
  border: 1px solid rgba(214, 211, 209, 0.65);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.movie-card:hover,
.compact-card:hover,
.rank-item:hover,
.category-card:hover {
  transform: translateY(-5px);
  border-color: rgba(245, 158, 11, 0.42);
  box-shadow: 0 22px 55px rgba(69, 26, 3, 0.18);
}

.poster {
  position: relative;
  display: block;
  height: 260px;
  overflow: hidden;
  background: var(--stone-800);
}

.movie-grid.small-grid .poster {
  height: 176px;
}

.movie-card-wide {
  display: grid;
  grid-template-columns: 190px 1fr;
  min-height: 210px;
}

.movie-card-wide .poster {
  height: 100%;
}

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

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

.poster::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), transparent 65%);
  transition: opacity 0.25s ease;
}

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

.poster-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  padding: 4px 9px;
  color: white;
  background: rgba(0, 0, 0, 0.72);
  border-radius: 999px;
  font-size: 12px;
  backdrop-filter: blur(8px);
}

.poster-play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  color: white;
  opacity: 0;
  border-radius: 999px;
  background: rgba(217, 119, 6, 0.9);
  transform: translate(-50%, -50%) scale(0.9);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px;
}

.card-body strong {
  color: var(--stone-800);
  font-size: 18px;
  line-height: 1.35;
}

.card-body em {
  margin-top: 8px;
  color: var(--stone-600);
  display: -webkit-box;
  overflow: hidden;
  font-style: normal;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: auto;
  padding-top: 14px;
  color: var(--stone-600);
  font-size: 12px;
}

.card-meta span {
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--amber-100);
  color: var(--amber-800);
}

.highlight-panel {
  padding: 30px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, #fef3c7, #ffedd5);
  box-shadow: var(--shadow-soft);
}

.dark-panel {
  padding: 30px;
  color: white;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 12% 20%, rgba(245, 158, 11, 0.22), transparent 35%),
    linear-gradient(135deg, var(--stone-900), var(--stone-800));
  box-shadow: var(--shadow-soft);
}

.dark-panel .section-head h2,
.dark-panel .section-head p {
  color: white;
}

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

.category-card {
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(254, 243, 199, 0.92));
}

.category-card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--stone-800);
  font-size: 22px;
}

.category-card p {
  margin: 0;
  color: var(--stone-600);
}

.category-card span {
  display: inline-flex;
  margin-top: 18px;
  color: var(--amber-700);
  font-weight: 700;
}

.filter-panel {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 14px;
  padding: 18px;
  margin: 0 0 28px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(14px);
}

.filter-panel label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--stone-600);
  font-size: 13px;
  font-weight: 700;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--stone-200);
  border-radius: 12px;
  background: white;
  color: var(--stone-800);
  font: inherit;
  outline: none;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--amber-500);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.14);
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 62px 0;
  color: white;
  background:
    radial-gradient(circle at 18% 15%, rgba(245, 158, 11, 0.28), transparent 32%),
    linear-gradient(135deg, var(--stone-900), var(--amber-950));
}

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

.page-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.12;
}

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

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

.rank-item {
  display: grid;
  grid-template-columns: 68px 86px 1fr 70px;
  align-items: center;
  gap: 16px;
  padding: 12px;
}

.rank-item img {
  width: 86px;
  height: 112px;
  object-fit: cover;
  border-radius: 12px;
}

.rank-no {
  color: var(--amber-700);
  font-size: 24px;
  font-weight: 900;
  text-align: center;
}

.rank-copy {
  min-width: 0;
}

.rank-copy strong {
  display: block;
  color: var(--stone-800);
  font-size: 18px;
}

.rank-copy em {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 4px;
  color: var(--stone-600);
  font-style: normal;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.rank-score {
  justify-self: end;
  min-width: 54px;
  padding: 7px 10px;
  color: #fff;
  background: var(--amber-600);
  border-radius: 999px;
  text-align: center;
  font-weight: 900;
}

.detail-wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0 62px;
}

.detail-hero {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 34px;
  align-items: center;
  padding: 30px;
  border-radius: var(--radius-xl);
  color: white;
  background:
    radial-gradient(circle at 84% 8%, rgba(245, 158, 11, 0.28), transparent 30%),
    linear-gradient(135deg, var(--stone-900), var(--amber-950));
  box-shadow: var(--shadow-soft);
}

.detail-cover {
  overflow: hidden;
  border-radius: 22px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

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

.detail-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.1;
}

.detail-lead {
  margin: 0 0 22px;
  color: var(--stone-200);
  font-size: 18px;
}

.meta-pills,
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 0 0 24px;
}

.meta-pills span,
.tag-list span {
  display: inline-flex;
  padding: 6px 11px;
  border-radius: 999px;
  color: var(--amber-100);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
}

.content-card {
  margin-top: 30px;
  padding: 30px;
  border-radius: var(--radius-xl);
  background: white;
  box-shadow: var(--shadow-card);
}

.content-card h2 {
  margin: 0 0 14px;
  color: var(--stone-800);
  font-size: 28px;
}

.content-card p {
  margin: 0 0 22px;
  color: var(--stone-700);
}

.content-card p:last-child {
  margin-bottom: 0;
}

.player-section {
  margin-top: 34px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: #000;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

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

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  border: 0;
  color: white;
  background:
    radial-gradient(circle at center, rgba(217, 119, 6, 0.16), rgba(0, 0, 0, 0.52)),
    rgba(0, 0, 0, 0.18);
  cursor: pointer;
}

.play-overlay.is-hidden {
  display: none;
}

.play-overlay span {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  padding-left: 4px;
  border-radius: 999px;
  background: var(--amber-600);
  box-shadow: 0 18px 40px rgba(217, 119, 6, 0.45);
  font-size: 28px;
  transition: transform 0.2s ease, background 0.2s ease;
}

.play-overlay:hover span {
  background: var(--amber-700);
  transform: scale(1.06);
}

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

.compact-card {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
}

.compact-card img {
  width: 72px;
  height: 92px;
  object-fit: cover;
  border-radius: 12px;
}

.compact-card strong {
  display: block;
  color: var(--stone-800);
  line-height: 1.35;
}

.compact-card em {
  display: block;
  margin-top: 4px;
  color: var(--stone-600);
  font-size: 13px;
  font-style: normal;
}

.site-footer {
  color: var(--stone-300);
  background: linear-gradient(90deg, var(--stone-950), var(--stone-900), var(--stone-950));
}

.footer-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 44px 0 28px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 34px;
}

.footer-logo {
  margin-bottom: 12px;
  color: #fff7ed;
  font-size: 22px;
  font-weight: 900;
}

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

.site-footer h3 {
  margin: 0 0 12px;
  color: #fff7ed;
}

.site-footer ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.site-footer li {
  margin: 7px 0;
}

.site-footer a {
  color: var(--stone-300);
}

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

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 28px;
  border-top: 1px solid rgba(214, 211, 209, 0.18);
  color: var(--stone-500);
  text-align: center;
  font-size: 14px;
}

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

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

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

  .detail-hero {
    grid-template-columns: 290px 1fr;
  }
}

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

  .mobile-toggle {
    display: block;
  }

  .hero {
    height: 540px;
  }

  .hero-arrow {
    display: none;
  }

  .hero-content {
    bottom: 58px;
  }

  .main-wrap,
  .page-wrap,
  .detail-wrap {
    padding: 34px 0;
  }

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

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

  .movie-card-wide {
    display: flex;
    min-height: 0;
  }

  .movie-card-wide .poster {
    height: 220px;
  }

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

  .rank-item {
    grid-template-columns: 46px 68px 1fr;
  }

  .rank-item img {
    width: 68px;
    height: 88px;
  }

  .rank-score {
    grid-column: 2 / 4;
    justify-self: start;
  }

  .detail-hero {
    grid-template-columns: 1fr;
    padding: 22px;
  }

  .detail-cover {
    max-width: 320px;
  }

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

@media (max-width: 520px) {
  .logo-copy strong {
    font-size: 17px;
  }

  .logo-copy small {
    display: none;
  }

  .movie-grid,
  .movie-grid.two-grid,
  .movie-grid.small-grid,
  .category-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .poster {
    height: 250px;
  }

  .category-card,
  .highlight-panel,
  .dark-panel,
  .content-card {
    padding: 22px;
  }

  .detail-actions,
  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .btn-primary,
  .btn-secondary,
  .btn-ghost {
    width: 100%;
  }
}
