:root {
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-300: #fcd34d;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --orange-600: #ea580c;
  --stone-50: #fafaf9;
  --stone-100: #f5f5f4;
  --stone-200: #e7e5e4;
  --stone-500: #78716c;
  --stone-600: #57534e;
  --stone-700: #44403c;
  --stone-800: #292524;
  --stone-900: #1c1917;
  --white: #ffffff;
  --shadow-soft: 0 18px 40px rgba(41, 37, 36, 0.12);
  --shadow-card: 0 10px 26px rgba(41, 37, 36, 0.09);
  --radius-lg: 18px;
  --radius-xl: 26px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--stone-800);
  background: linear-gradient(180deg, var(--stone-50) 0%, #fff7ed 42%, var(--stone-50) 100%);
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(231, 229, 228, 0.9);
  backdrop-filter: blur(16px);
}

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

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

.logo {
  font-size: 22px;
}

.logo-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--amber-600), var(--orange-600));
  box-shadow: 0 10px 22px rgba(217, 119, 6, 0.28);
}

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

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

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

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

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

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

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

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

.page-main {
  min-height: 70vh;
}

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

.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: radial-gradient(circle at 20% 0%, rgba(245, 158, 11, 0.45), transparent 32%), linear-gradient(135deg, #1c1917, #451a03 58%, #111827);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -8% -32% 48%;
  height: 380px;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.24), transparent 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 46px 0 58px;
}

.hero-carousel {
  position: relative;
  min-height: 560px;
}

.hero-slide {
  display: none;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 36px;
  align-items: center;
  min-height: 560px;
}

.hero-slide.is-active {
  display: grid;
  animation: fadeUp 0.55s ease both;
}

.hero-copy {
  max-width: 660px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 8px 14px;
  color: var(--amber-100);
  border: 1px solid rgba(252, 211, 77, 0.45);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.hero h1 {
  margin: 0;
  font-size: clamp(38px, 6vw, 74px);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.hero h1 a:hover {
  color: var(--amber-300);
}

.hero-summary {
  max-width: 640px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
  line-height: 1.8;
}

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

.hero-tags {
  margin: 22px 0 0;
}

.hero-tags span,
.tag-row span,
.detail-tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.hero-tags span {
  color: var(--amber-50);
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

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

.btn-secondary {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.hero-poster-card {
  position: relative;
  overflow: hidden;
  min-height: 500px;
  border-radius: 30px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.42);
  isolation: isolate;
}

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

.hero-poster-card:hover img {
  transform: scale(1.06);
}

.hero-poster-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, 0.82));
}

.hero-poster-info {
  position: absolute;
  z-index: 2;
  left: 24px;
  right: 24px;
  bottom: 24px;
}

.hero-poster-info strong {
  display: block;
  font-size: 22px;
  margin-bottom: 8px;
}

.hero-poster-info p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.6;
}

.hero-control {
  position: absolute;
  z-index: 4;
  top: 50%;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: rgba(0, 0, 0, 0.52);
  cursor: pointer;
}

.hero-control:hover {
  background: rgba(0, 0, 0, 0.74);
}

.hero-prev {
  left: 14px;
}

.hero-next {
  right: 14px;
}

.hero-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
}

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

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

.hero-search-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  margin-top: 32px;
  padding: 12px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
}

.search-field {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--stone-200);
  border-radius: 16px;
  padding: 0 16px;
  color: var(--stone-800);
  background: #fff;
  outline: none;
  font-size: 15px;
}

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

.section {
  padding: 58px 0;
}

.section.compact {
  padding: 36px 0;
}

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

.section-kicker {
  margin: 0 0 8px;
  color: var(--amber-600);
  font-weight: 900;
  letter-spacing: 0.08em;
}

.section-head h2,
.page-title h1,
.detail-title {
  margin: 0;
  color: var(--stone-900);
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -0.04em;
}

.section-more {
  display: inline-flex;
  min-width: max-content;
  padding: 10px 16px;
  border-radius: 999px;
  color: var(--amber-700, #b45309);
  background: var(--amber-50);
  font-weight: 900;
}

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

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

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

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

.poster-wrap {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background: linear-gradient(135deg, var(--stone-200), var(--amber-100));
}

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

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

.poster-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.48));
  opacity: 0.72;
}

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

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

.rank-badge {
  position: absolute;
  z-index: 3;
  left: 12px;
  top: 12px;
  min-width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--amber-600), var(--orange-600));
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.2);
}

.movie-card-body {
  padding: 16px;
}

.movie-meta-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--stone-500);
  font-size: 13px;
  font-weight: 800;
}

.movie-card h3 {
  margin: 10px 0 8px;
  color: var(--stone-900);
  font-size: 17px;
  line-height: 1.35;
}

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

.movie-card p {
  min-height: 44px;
  margin: 0 0 12px;
  color: var(--stone-600);
  font-size: 14px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tag-row span,
.detail-tag-row span {
  color: var(--amber-700, #b45309);
  background: var(--amber-50);
}

.category-panel,
.search-panel,
.detail-card,
.related-panel,
.page-title,
.ranking-panel {
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-card);
}

.category-panel,
.search-panel,
.page-title,
.ranking-panel {
  padding: 28px;
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 190px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-radius: 22px;
  color: #fff;
  background: linear-gradient(135deg, var(--stone-800), var(--amber-600));
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

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

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

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.75));
}

.category-card-content {
  position: relative;
  z-index: 1;
}

.category-card h2,
.category-card h3 {
  margin: 0 0 8px;
  font-size: 24px;
}

.category-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.6;
}

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

.page-title p {
  max-width: 760px;
  margin: 14px 0 0;
  color: var(--stone-600);
  line-height: 1.8;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 22px 0 26px;
}

.filter-button {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--stone-200);
  border-radius: 999px;
  color: var(--stone-600);
  background: #fff;
  font-weight: 800;
  cursor: pointer;
}

.filter-button.is-active,
.filter-button:hover {
  color: #fff;
  border-color: var(--amber-600);
  background: var(--amber-600);
}

.empty-state {
  display: none;
  padding: 46px 16px;
  text-align: center;
  color: var(--stone-600);
  border-radius: var(--radius-lg);
  background: #fff;
}

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

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

.ranking-item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 14px;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-card);
}

.ranking-num {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--amber-600), var(--orange-600));
}

.ranking-item h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.ranking-item h3 a:hover {
  color: var(--amber-600);
}

.ranking-item p {
  margin: 0;
  color: var(--stone-500);
  font-size: 13px;
  line-height: 1.5;
}

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

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

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.7fr);
  gap: 28px;
  align-items: start;
  padding-bottom: 56px;
}

.player-area {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #000;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.28);
}

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

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  border: 0;
  padding: 0;
  color: #fff;
  background: #000;
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.62;
}

.player-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.2), rgba(0, 0, 0, 0.78));
}

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

.player-icon {
  position: relative;
  z-index: 1;
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  font-size: 32px;
  background: linear-gradient(135deg, var(--amber-600), var(--orange-600));
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.35);
}

.detail-card {
  margin-top: 22px;
  padding: 28px;
}

.detail-title {
  font-size: clamp(30px, 4vw, 48px);
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 20px;
}

.detail-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--stone-700);
  background: var(--stone-100);
  font-weight: 800;
}

.detail-card h2,
.related-panel h2 {
  margin: 26px 0 12px;
  color: var(--stone-900);
  font-size: 24px;
}

.detail-card p {
  color: var(--stone-700);
  line-height: 1.9;
}

.side-poster {
  overflow: hidden;
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow-card);
}

.side-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.side-poster-body {
  padding: 18px;
}

.side-poster-body h2 {
  margin: 0 0 10px;
  font-size: 22px;
}

.side-poster-body p {
  margin: 0;
  color: var(--stone-600);
  line-height: 1.7;
}

.related-panel {
  padding: 22px;
  margin-top: 22px;
}

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

.related-link {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  background: var(--stone-50);
  transition: background 0.2s ease, transform 0.2s ease;
}

.related-link:hover {
  background: var(--amber-50);
  transform: translateX(3px);
}

.related-link img {
  width: 56px;
  height: 78px;
  border-radius: 12px;
  object-fit: cover;
}

.related-link strong {
  display: block;
  color: var(--stone-900);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.related-link span {
  color: var(--stone-500);
  font-size: 13px;
}

.site-footer {
  color: var(--stone-300, #d6d3d1);
  background: linear-gradient(135deg, var(--stone-800), var(--stone-900));
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(160px, 0.6fr) minmax(240px, 0.8fr);
  gap: 28px;
}

.footer-logo {
  color: #fff;
  font-size: 20px;
  margin-bottom: 12px;
}

.site-footer p {
  margin: 0;
  line-height: 1.8;
}

.footer-links {
  display: grid;
  gap: 9px;
  align-content: start;
}

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

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--stone-500);
  font-size: 14px;
  text-align: center;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

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

  .hero-slide {
    grid-template-columns: 1fr;
  }

  .hero-carousel,
  .hero-slide {
    min-height: auto;
  }

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

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

  .nav-links {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .hero-inner {
    padding: 28px 0 46px;
  }

  .hero-slide {
    gap: 22px;
  }

  .hero-poster-card,
  .hero-poster-card img {
    min-height: 360px;
  }

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

  .section {
    padding: 42px 0;
  }

  .section-head {
    display: grid;
  }

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

  .movie-card-body {
    padding: 13px;
  }

  .movie-card p {
    min-height: 40px;
    font-size: 13px;
  }

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

@media (max-width: 460px) {
  .movie-grid,
  .movie-grid.wide,
  .category-grid,
  .ranking-list {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 38px;
  }

  .category-card {
    min-height: 170px;
  }

  .detail-card,
  .category-panel,
  .search-panel,
  .page-title,
  .ranking-panel {
    padding: 20px;
  }
}
