:root {
  --color-amber-50: #fff8eb;
  --color-amber-100: #ffefc7;
  --color-amber-200: #ffe19b;
  --color-amber-400: #f2b84b;
  --color-amber-500: #d99020;
  --color-amber-600: #b97416;
  --color-stone-50: #fafaf9;
  --color-stone-100: #f5f5f4;
  --color-stone-200: #e7e5e4;
  --color-stone-500: #78716c;
  --color-stone-600: #57534e;
  --color-stone-700: #44403c;
  --color-stone-800: #292524;
  --color-stone-900: #1c1917;
  --shadow-soft: 0 18px 45px rgba(41, 37, 36, 0.12);
  --shadow-card: 0 10px 30px rgba(41, 37, 36, 0.10);
  --radius-lg: 18px;
  --radius-xl: 28px;
  --site-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid rgba(231, 229, 228, 0.86);
  box-shadow: 0 10px 30px rgba(41, 37, 36, 0.06);
}

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

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

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--color-amber-500), var(--color-stone-700));
  border-radius: 999px;
  box-shadow: 0 12px 24px rgba(217, 144, 32, 0.25);
}

.brand-title {
  margin: 0;
  color: var(--color-stone-800);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.1;
  white-space: nowrap;
}

.brand-subtitle {
  margin: 3px 0 0;
  color: var(--color-stone-600);
  font-size: 12px;
  white-space: nowrap;
}

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

.nav-links a {
  color: var(--color-stone-700);
  font-weight: 700;
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--color-amber-600);
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  color: var(--color-stone-700);
  background: var(--color-amber-50);
  border: 1px solid var(--color-stone-200);
  border-radius: 12px;
  cursor: pointer;
}

.mobile-menu {
  display: none;
  padding: 0 16px 16px;
  background: #ffffff;
  border-bottom: 1px solid var(--color-stone-200);
}

.mobile-menu a {
  display: block;
  padding: 12px 14px;
  color: var(--color-stone-700);
  font-weight: 700;
  border-radius: 12px;
}

.mobile-menu a:hover {
  color: var(--color-amber-600);
  background: var(--color-amber-50);
}

.hero-slider {
  position: relative;
  min-height: 540px;
  overflow: hidden;
  color: #ffffff;
  background: var(--color-stone-900);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease;
}

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

.hero-slide::before {
  position: absolute;
  inset: 0;
  content: "";
  background-image:
    linear-gradient(90deg, rgba(28, 25, 23, 0.92) 0%, rgba(28, 25, 23, 0.70) 42%, rgba(28, 25, 23, 0.22) 100%),
    var(--hero-image);
  background-position: center;
  background-size: cover;
  transform: scale(1.05);
}

.hero-slide::after {
  position: absolute;
  inset: auto 0 0;
  height: 180px;
  content: "";
  background: linear-gradient(180deg, transparent, rgba(255, 248, 235, 0.95));
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) 360px;
  gap: 48px;
  align-items: center;
  width: min(var(--site-width), calc(100% - 32px));
  margin: 0 auto;
  padding: 70px 0 90px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 8px 14px;
  margin-bottom: 18px;
  color: var(--color-amber-100);
  font-size: 14px;
  font-weight: 800;
  background: rgba(217, 144, 32, 0.22);
  border: 1px solid rgba(255, 239, 199, 0.30);
  border-radius: 999px;
}

.hero-title {
  max-width: 760px;
  margin: 0 0 18px;
  font-size: clamp(36px, 7vw, 72px);
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: -0.06em;
}

.hero-title span {
  color: var(--color-amber-400);
}

.hero-text {
  max-width: 680px;
  margin: 0 0 26px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(16px, 2vw, 20px);
}

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

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  color: var(--color-stone-700);
  font-size: 13px;
  font-weight: 800;
  background: #ffffff;
  border-radius: 999px;
}

.pill.is-gold {
  color: #ffffff;
  background: var(--color-amber-500);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

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

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: #ffffff;
  background: var(--color-amber-500);
  box-shadow: 0 16px 32px rgba(217, 144, 32, 0.26);
}

.button-primary:hover {
  background: var(--color-amber-600);
}

.button-ghost {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.hero-poster {
  overflow: hidden;
  border: 8px solid rgba(255, 255, 255, 0.16);
  border-radius: 30px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.40);
  transform: rotate(2deg);
}

.hero-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  background: linear-gradient(145deg, var(--color-stone-800), var(--color-amber-600));
}

.hero-controls {
  position: absolute;
  z-index: 2;
  right: max(24px, calc((100% - var(--site-width)) / 2));
  bottom: 70px;
  display: flex;
  gap: 8px;
}

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

.hero-dot.is-active {
  width: 58px;
  background: var(--color-amber-400);
}

.section {
  padding: 54px 0;
}

.section-tight {
  padding: 34px 0;
}

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

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  color: var(--color-amber-600);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.section-title {
  margin: 0;
  color: var(--color-stone-800);
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.14;
  font-weight: 900;
}

.section-desc {
  max-width: 720px;
  margin: 10px 0 0;
  color: var(--color-stone-600);
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 180px 180px;
  gap: 12px;
  padding: 18px;
  margin-bottom: 28px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(231, 229, 228, 0.86);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.filter-input,
.filter-select {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  color: var(--color-stone-700);
  background: #ffffff;
  border: 1px solid var(--color-stone-200);
  border-radius: 13px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.filter-input:focus,
.filter-select:focus {
  border-color: var(--color-amber-500);
  box-shadow: 0 0 0 4px rgba(217, 144, 32, 0.13);
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 176px;
  padding: 22px;
  background: #ffffff;
  border: 1px solid var(--color-stone-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.category-card::after {
  position: absolute;
  right: -34px;
  bottom: -38px;
  width: 130px;
  height: 130px;
  content: "";
  background: radial-gradient(circle, rgba(217, 144, 32, 0.22), transparent 68%);
}

.category-card h3 {
  position: relative;
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 900;
}

.category-card p {
  position: relative;
  margin: 0 0 18px;
  color: var(--color-stone-600);
  font-size: 14px;
}

.category-card strong {
  position: relative;
  color: var(--color-amber-600);
  font-size: 28px;
  font-weight: 900;
}

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

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

.movie-card.is-hidden {
  display: none;
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  margin-bottom: 10px;
  color: #ffffff;
  background: linear-gradient(145deg, var(--color-stone-800), var(--color-amber-600));
  border-radius: 16px;
  box-shadow: var(--shadow-card);
}

.poster-link img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

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

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

.poster-missing::before {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  content: attr(data-title);
  color: rgba(255, 255, 255, 0.82);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.45;
  text-align: center;
  background: linear-gradient(145deg, var(--color-stone-800), var(--color-amber-600));
}

.poster-label {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  padding: 5px 8px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  background: var(--color-amber-500);
  border-radius: 8px;
}

.poster-summary {
  position: absolute;
  right: 10px;
  bottom: 10px;
  left: 10px;
  z-index: 2;
  margin: 0;
  color: rgba(255, 255, 255, 0.90);
  font-size: 12px;
  line-height: 1.45;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.movie-title {
  display: block;
  overflow: hidden;
  color: var(--color-stone-800);
  font-size: 15px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.movie-title:hover {
  color: var(--color-amber-600);
}

.movie-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 5px;
  color: var(--color-stone-500);
  font-size: 12px;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 58px 72px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 14px;
  background: #ffffff;
  border: 1px solid var(--color-stone-200);
  border-radius: 18px;
  box-shadow: var(--shadow-card);
}

.rank-number {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  color: #ffffff;
  font-size: 18px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--color-amber-500), var(--color-stone-700));
  border-radius: 14px;
}

.rank-thumb {
  overflow: hidden;
  width: 72px;
  height: 96px;
  background: linear-gradient(145deg, var(--color-stone-800), var(--color-amber-600));
  border-radius: 12px;
}

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

.rank-title {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 900;
}

.rank-desc {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: var(--color-stone-600);
  font-size: 14px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.rank-score {
  display: grid;
  place-items: center;
  min-width: 70px;
  min-height: 46px;
  color: var(--color-amber-600);
  font-size: 18px;
  font-weight: 900;
  background: var(--color-amber-50);
  border-radius: 13px;
}

.page-hero {
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-amber-600), var(--color-stone-800));
}

.page-hero .container {
  padding: 74px 0;
}

.page-hero h1 {
  max-width: 880px;
  margin: 0 0 14px;
  font-size: clamp(34px, 6vw, 58px);
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -0.04em;
}

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

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

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

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 0.9fr);
  gap: 28px;
  align-items: start;
}

.content-card {
  padding: 26px;
  margin-bottom: 22px;
  background: #ffffff;
  border: 1px solid var(--color-stone-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.content-card h1,
.content-card h2,
.content-card h3 {
  margin-top: 0;
  color: var(--color-stone-800);
}

.detail-title {
  margin: 0 0 12px;
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.detail-one-line {
  margin: 0 0 18px;
  color: var(--color-amber-600);
  font-size: 18px;
  font-weight: 800;
}

.detail-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 16px;
  margin: 18px 0;
  background: var(--color-stone-50);
  border-radius: 16px;
}

.meta-item span {
  display: block;
  color: var(--color-stone-500);
  font-size: 12px;
  font-weight: 800;
}

.meta-item strong {
  display: block;
  margin-top: 3px;
  color: var(--color-stone-800);
  font-size: 14px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.tag-list span {
  padding: 6px 10px;
  color: var(--color-stone-700);
  font-size: 13px;
  font-weight: 700;
  background: var(--color-stone-100);
  border-radius: 10px;
}

.player-card {
  position: relative;
  overflow: hidden;
  margin-bottom: 22px;
  background: #000000;
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.26);
}

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

.player-loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.72);
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-card.is-ready .player-loading {
  visibility: hidden;
  opacity: 0;
}

.spinner {
  width: 52px;
  height: 52px;
  border: 4px solid rgba(255, 255, 255, 0.24);
  border-top-color: var(--color-amber-500);
  border-radius: 999px;
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  color: #ffffff;
  font-size: 28px;
  background: rgba(217, 144, 32, 0.92);
  border: 0;
  border-radius: 999px;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.32);
  transform: translate(-50%, -50%);
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.play-overlay:hover {
  transform: translate(-50%, -50%) scale(1.06);
}

.player-card.is-playing .play-overlay {
  opacity: 0;
  pointer-events: none;
}

.player-message {
  position: absolute;
  right: 14px;
  bottom: 14px;
  left: 14px;
  z-index: 4;
  display: none;
  padding: 10px 12px;
  color: #ffffff;
  font-size: 13px;
  background: rgba(28, 25, 23, 0.86);
  border-radius: 12px;
}

.player-card.has-message .player-message {
  display: block;
}

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

.related-card {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.related-card img {
  width: 86px;
  height: 116px;
  object-fit: cover;
  background: linear-gradient(145deg, var(--color-stone-800), var(--color-amber-600));
  border-radius: 12px;
}

.related-card h4 {
  display: -webkit-box;
  overflow: hidden;
  margin: 0 0 8px;
  color: var(--color-stone-800);
  font-size: 14px;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.related-card p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: var(--color-stone-500);
  font-size: 12px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.site-footer {
  margin-top: 70px;
  color: rgba(255, 255, 255, 0.76);
  background: linear-gradient(135deg, var(--color-stone-900), #3b2a12);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 28px;
  width: min(var(--site-width), calc(100% - 32px));
  margin: 0 auto;
  padding: 46px 0;
}

.footer-title {
  margin: 0 0 10px;
  color: #ffffff;
  font-size: 20px;
  font-weight: 900;
}

.footer-inner p,
.footer-inner li {
  color: rgba(255, 255, 255, 0.62);
  font-size: 14px;
}

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

.footer-inner li + li {
  margin-top: 8px;
}

.footer-inner a:hover {
  color: var(--color-amber-200);
}

.footer-bottom {
  width: min(var(--site-width), calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 26px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 13px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.empty-state {
  display: none;
  padding: 40px;
  color: var(--color-stone-600);
  text-align: center;
  background: #ffffff;
  border: 1px dashed var(--color-stone-200);
  border-radius: var(--radius-lg);
}

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

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

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

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

  .mobile-toggle {
    display: inline-grid;
    place-items: center;
  }

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

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 58px 0 86px;
  }

  .hero-poster {
    max-width: 260px;
    transform: none;
  }

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

  .detail-layout {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 640px) {
  .brand-subtitle {
    display: none;
  }

  .hero-slider {
    min-height: 620px;
  }

  .hero-controls {
    right: 16px;
    bottom: 42px;
  }

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

  .section-head {
    display: block;
  }

  .rank-row {
    grid-template-columns: 44px 62px minmax(0, 1fr);
  }

  .rank-score {
    grid-column: 3;
    justify-self: start;
    min-width: 62px;
    min-height: 34px;
    margin-top: 8px;
    font-size: 15px;
  }

  .detail-meta {
    grid-template-columns: 1fr;
  }

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