:root {
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-400: #fbbf24;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --amber-700: #b45309;
  --orange-600: #ea580c;
  --stone-50: #fafaf9;
  --stone-100: #f5f5f4;
  --stone-200: #e7e5e4;
  --stone-300: #d6d3d1;
  --stone-500: #78716c;
  --stone-600: #57534e;
  --stone-700: #44403c;
  --stone-800: #292524;
  --stone-900: #1c1917;
  --rose-600: #e11d48;
  --blue-600: #2563eb;
  --shadow-soft: 0 12px 30px rgba(41, 37, 36, 0.12);
  --shadow-strong: 0 24px 60px rgba(28, 25, 23, 0.26);
  --radius-lg: 18px;
  --radius-xl: 26px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--stone-50);
  color: var(--stone-800);
  font-family: 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(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(214, 211, 209, 0.72);
  backdrop-filter: blur(18px);
  box-shadow: 0 4px 24px rgba(41, 37, 36, 0.06);
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  color: var(--stone-900);
  letter-spacing: -0.03em;
}

.logo-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--amber-600), var(--orange-600));
  color: #ffffff;
  font-size: 15px;
  box-shadow: 0 10px 20px rgba(217, 119, 6, 0.24);
}

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

.nav-link {
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--stone-600);
  font-size: 15px;
  font-weight: 700;
  transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--amber-700);
  background: var(--amber-50);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: var(--stone-100);
  border-radius: 12px;
  cursor: pointer;
}

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

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 12px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

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

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

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

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

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

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(28, 25, 23, 0.92) 0%, rgba(28, 25, 23, 0.72) 38%, rgba(28, 25, 23, 0.18) 100%),
    linear-gradient(0deg, rgba(28, 25, 23, 0.88), rgba(28, 25, 23, 0.08));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  min-height: 520px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 72px 0 96px;
  color: #ffffff;
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 14px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(251, 191, 36, 0.16);
  color: var(--amber-400);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.hero-content h1 {
  max-width: 760px;
  margin: 0 0 18px;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 1.05;
  letter-spacing: -0.07em;
}

.hero-content p {
  max-width: 660px;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
}

.hero-actions,
.spotlight-copy .btn,
.rank-layout .btn {
  margin-top: 4px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 12px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn.primary {
  background: linear-gradient(135deg, var(--amber-600), var(--orange-600));
  color: #ffffff;
  box-shadow: 0 14px 28px rgba(217, 119, 6, 0.28);
}

.btn.ghost {
  margin-left: 10px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(10px);
}

.btn.ghost.dark {
  margin-left: 0;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 32px rgba(28, 25, 23, 0.18);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.44);
  color: #ffffff;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
}

.hero-arrow:hover {
  background: rgba(0, 0, 0, 0.68);
}

.hero-arrow.prev {
  left: 24px;
}

.hero-arrow.next {
  right: 24px;
}

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

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

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

.search-band {
  margin-top: -48px;
  position: relative;
  z-index: 5;
}

.search-panel {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 24px;
  align-items: center;
  padding: 26px;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-strong);
  backdrop-filter: blur(18px);
}

.search-panel h2,
.section-heading h2,
.rank-layout h2,
.spotlight-copy h2 {
  margin: 0;
  font-size: clamp(24px, 4vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.04em;
  color: var(--stone-800);
}

.search-panel p,
.rank-layout p,
.spotlight-copy p {
  margin: 8px 0 0;
  color: var(--stone-600);
}

.hero-search,
.filter-tools {
  display: flex;
  gap: 12px;
}

.hero-search input,
.filter-tools input,
.filter-tools select {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid var(--stone-200);
  border-radius: 14px;
  background: #ffffff;
  color: var(--stone-800);
  outline: none;
}

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

.hero-search button {
  min-width: 96px;
  border: 0;
  border-radius: 14px;
  background: var(--amber-600);
  color: #ffffff;
  font-weight: 800;
  cursor: pointer;
}

.category-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-top: 38px;
  margin-bottom: 58px;
}

.category-tile,
.category-card-large,
.detail-info-card,
.side-card,
.movie-card,
.ranking-card {
  background: #ffffff;
  border: 1px solid rgba(214, 211, 209, 0.68);
  box-shadow: var(--shadow-soft);
}

.category-tile {
  min-height: 132px;
  padding: 18px;
  border-radius: 20px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile strong {
  display: block;
  margin-bottom: 8px;
  color: var(--stone-900);
  font-size: 18px;
}

.category-tile span {
  display: block;
  color: var(--stone-600);
  font-size: 14px;
}

.category-tile:hover,
.movie-card:hover,
.ranking-card:hover,
.category-card-large:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 42px rgba(41, 37, 36, 0.16);
}

.spotlight {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
  margin-bottom: 64px;
  padding: 28px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--amber-50), #fff7ed);
  box-shadow: var(--shadow-soft);
}

.spotlight-cover {
  overflow: hidden;
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
  aspect-ratio: 16 / 9;
}

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

.content-section {
  margin-bottom: 68px;
}

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

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

.library-grid {
  padding-bottom: 56px;
}

.movie-card {
  overflow: hidden;
  border-radius: var(--radius-lg);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-cover {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--stone-200);
}

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

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

.play-badge {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(217, 119, 6, 0.92);
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.22);
}

.card-body {
  padding: 16px;
}

.card-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--stone-500);
  font-size: 13px;
}

.card-meta span,
.detail-meta span {
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--stone-100);
}

.card-body h2 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.35;
  color: var(--stone-900);
}

.card-body h2 a:hover,
.ranking-info h2 a:hover,
.compact-card:hover strong {
  color: var(--amber-700);
}

.card-body p {
  min-height: 46px;
  margin: 0 0 14px;
  color: var(--stone-600);
  font-size: 14px;
}

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

.tag-row span,
.detail-tags span {
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--amber-100);
  color: var(--amber-700);
  font-size: 12px;
  font-weight: 700;
}

.rank-section {
  margin: 72px 0;
  padding: 70px 0;
  background: radial-gradient(circle at 18% 10%, rgba(251, 191, 36, 0.18), transparent 32%), var(--stone-900);
  color: #ffffff;
}

.rank-layout {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 42px;
  align-items: start;
}

.rank-layout h2,
.rank-layout p {
  color: #ffffff;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 54px 1fr auto;
  gap: 14px;
  align-items: center;
  min-height: 54px;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.rank-row:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateX(4px);
}

.rank-number {
  color: var(--amber-400);
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.rank-tag {
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
}

.site-footer {
  margin-top: 72px;
  padding: 48px 0 0;
  background: var(--stone-800);
  color: var(--stone-300);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 34px;
}

.footer-logo {
  color: #ffffff;
  margin-bottom: 12px;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: 18px;
}

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

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

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

.footer-bottom {
  margin-top: 42px;
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  color: var(--stone-300);
  font-size: 14px;
}

.page-shell {
  min-height: 60vh;
}

.page-hero {
  padding: 70px 0;
  color: #ffffff;
}

.page-hero.amber {
  background: linear-gradient(135deg, var(--amber-600), var(--orange-600));
}

.page-hero.dark {
  background: radial-gradient(circle at 18% 20%, rgba(251, 191, 36, 0.22), transparent 30%), var(--stone-900);
}

.page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.1;
  letter-spacing: -0.05em;
}

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

.crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
}

.crumb a:hover {
  color: var(--amber-100);
}

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

.category-card-large {
  padding: 24px;
  border-radius: var(--radius-lg);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 12px;
}

.category-card-head h2 {
  margin: 0;
  font-size: 24px;
}

.category-card-head span {
  color: var(--amber-700);
  font-weight: 800;
}

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

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

.category-sample a {
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--stone-100);
  color: var(--stone-600);
  font-size: 13px;
}

.category-sample a:hover {
  color: var(--amber-700);
  background: var(--amber-50);
}

.filter-tools {
  margin-top: 34px;
  margin-bottom: 26px;
  padding: 18px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.filter-tools.prominent {
  margin-top: -28px;
  position: relative;
  z-index: 3;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 30px;
  margin-top: 34px;
}

.detail-page .crumb {
  color: var(--stone-600);
}

.detail-page .crumb a:hover {
  color: var(--amber-700);
}

.player-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #000000;
  box-shadow: var(--shadow-strong);
  aspect-ratio: 16 / 9;
}

.movie-video,
.player-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.movie-video {
  background: #000000;
  object-fit: contain;
}

.player-cover {
  z-index: 2;
  padding: 0;
  border: 0;
  cursor: pointer;
  background: #000000;
}

.player-cover.is-hidden {
  display: none;
}

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

.player-cover-shade {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.38);
}

.player-button {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 78px;
  height: 78px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--amber-600);
  color: #ffffff;
  font-size: 32px;
  transform: translate(-50%, -50%);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.28);
}

.detail-info-card,
.side-card {
  margin-top: 24px;
  padding: 24px;
  border-radius: var(--radius-lg);
}

.detail-info-card h1 {
  margin: 0 0 16px;
  font-size: clamp(28px, 5vw, 42px);
  line-height: 1.16;
  letter-spacing: -0.05em;
}

.detail-info-card h2,
.side-card h2 {
  margin: 24px 0 10px;
  font-size: 20px;
}

.detail-info-card p {
  margin: 0;
  color: var(--stone-700);
  white-space: pre-line;
}

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

.detail-side {
  position: relative;
}

.side-card {
  position: sticky;
  top: 96px;
}

.side-card h2 {
  margin-top: 0;
}

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

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

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

.compact-card strong {
  display: block;
  color: var(--stone-900);
  font-size: 14px;
  line-height: 1.35;
}

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

.related-section {
  margin-top: 52px;
}

.ranking-list-page {
  display: grid;
  gap: 16px;
  margin-top: 30px;
}

.ranking-card {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 20px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ranking-cover {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

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

.ranking-info {
  padding: 18px 18px 18px 0;
}

.ranking-info h2 {
  margin: 4px 0 8px;
  font-size: 24px;
}

.ranking-info p {
  margin: 0 0 12px;
  color: var(--stone-600);
}

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

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

  .detail-layout,
  .rank-layout,
  .search-panel,
  .spotlight {
    grid-template-columns: 1fr;
  }

  .detail-side .side-card {
    position: static;
  }
}

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

  .menu-toggle {
    display: block;
  }

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

  .hero-carousel,
  .hero-content {
    min-height: 560px;
  }

  .hero-content {
    padding-top: 86px;
  }

  .hero-arrow {
    display: none;
  }

  .hero-search,
  .filter-tools {
    flex-direction: column;
  }

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

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

  .ranking-info {
    padding: 0 18px 18px;
  }

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

  .rank-tag {
    grid-column: 2;
  }

  .btn.ghost {
    margin-left: 0;
    margin-top: 10px;
  }
}

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

  .site-logo {
    font-size: 17px;
  }

  .hero-content h1 {
    font-size: 40px;
  }

  .search-panel,
  .spotlight,
  .detail-info-card,
  .side-card {
    padding: 18px;
  }

  .page-hero {
    padding: 52px 0;
  }

  .compact-card {
    grid-template-columns: 96px 1fr;
  }

  .compact-card img {
    width: 96px;
    height: 64px;
  }
}
