:root {
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-200: #fde68a;
  --amber-300: #fcd34d;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --amber-700: #b45309;
  --amber-800: #92400e;
  --orange-50: #fff7ed;
  --orange-600: #ea580c;
  --orange-700: #c2410c;
  --stone-50: #fafaf9;
  --gray-500: #6b7280;
  --gray-700: #374151;
  --gray-900: #111827;
  --white: #ffffff;
  --shadow: 0 16px 40px rgba(120, 53, 15, 0.14);
  --shadow-soft: 0 10px 26px rgba(120, 53, 15, 0.09);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--gray-900);
  background: linear-gradient(135deg, var(--amber-50), var(--orange-50) 48%, var(--stone-50));
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(253, 230, 138, 0.72);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--amber-800);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  color: var(--white);
  background: linear-gradient(135deg, var(--orange-600), var(--amber-600));
  box-shadow: 0 12px 26px rgba(234, 88, 12, 0.24);
}

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

.main-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--amber-800);
  font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.main-nav a:hover {
  color: var(--white);
  background: var(--amber-600);
  transform: translateY(-1px);
}

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

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

.hero-carousel {
  position: relative;
  overflow: hidden;
  min-height: 600px;
  border-radius: 0 0 42px 42px;
  background: radial-gradient(circle at 22% 18%, rgba(252, 211, 77, 0.34), transparent 34%),
    linear-gradient(135deg, #78350f, #92400e 45%, #111827);
  color: var(--white);
  box-shadow: var(--shadow);
}

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

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

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(17, 24, 39, 0.92), rgba(17, 24, 39, 0.56), rgba(17, 24, 39, 0.18));
  z-index: 1;
}

.hero-bg {
  position: absolute;
  inset: 0;
  opacity: 0.36;
  filter: saturate(1.15);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.72fr);
  gap: 40px;
  align-items: center;
  min-height: 600px;
  padding: 76px 0 88px;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border: 1px solid rgba(253, 230, 138, 0.42);
  border-radius: 999px;
  color: var(--amber-100);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  font-size: 14px;
  font-weight: 700;
}

.hero-copy h1 {
  margin: 22px 0 18px;
  font-size: clamp(36px, 7vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.055em;
}

.hero-copy p {
  margin: 0;
  color: rgba(255, 251, 235, 0.88);
  font-size: 18px;
  line-height: 1.9;
}

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

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

.btn-primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--orange-600), var(--amber-600));
  box-shadow: 0 16px 30px rgba(234, 88, 12, 0.28);
}

.btn-ghost {
  color: var(--amber-50);
  border-color: rgba(253, 230, 138, 0.44);
  background: rgba(255, 255, 255, 0.12);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 32px rgba(120, 53, 15, 0.2);
}

.hero-poster {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border: 1px solid rgba(253, 230, 138, 0.42);
  border-radius: 32px;
  box-shadow: 0 34px 70px rgba(0, 0, 0, 0.32);
  transform: rotate(2deg);
}

.hero-poster::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 48%;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), transparent);
}

.hero-poster strong {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 1;
  font-size: 22px;
  line-height: 1.3;
}

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

.hero-dot {
  width: 34px;
  height: 7px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.32);
  transition: width 0.2s ease, background 0.2s ease;
}

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

.quick-search {
  position: relative;
  z-index: 4;
  margin-top: -38px;
}

.search-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 18px;
  border: 1px solid rgba(253, 230, 138, 0.78);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-soft);
}

.search-panel input,
.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid rgba(245, 158, 11, 0.32);
  border-radius: 16px;
  outline: 0;
  color: var(--gray-900);
  background: var(--amber-50);
}

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

.section {
  padding: 58px 0;
}

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

.section-title,
.page-head h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.035em;
  color: var(--amber-900);
}

.section-subtitle,
.page-head p {
  max-width: 720px;
  margin: 10px 0 0;
  color: var(--gray-700);
  line-height: 1.8;
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 132px;
  padding: 22px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--white), var(--amber-100));
  box-shadow: var(--shadow-soft);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-card::after {
  content: "";
  position: absolute;
  right: -24px;
  bottom: -34px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.18);
}

.category-card strong {
  position: relative;
  z-index: 1;
  display: block;
  margin-bottom: 10px;
  color: var(--amber-900);
  font-size: 21px;
}

.category-card span {
  position: relative;
  z-index: 1;
  color: var(--gray-700);
  line-height: 1.7;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(253, 230, 138, 0.76);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-soft);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.poster-link img {
  transition: transform 0.36s ease;
}

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

.poster-gradient {
  position: absolute;
  inset: auto 0 0 0;
  height: 46%;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.64), transparent);
}

.year-badge,
.rank-no {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--white);
  font-weight: 800;
}

.year-badge {
  left: 12px;
  top: 12px;
  min-width: 58px;
  height: 30px;
  padding: 0 10px;
  background: rgba(17, 24, 39, 0.72);
  backdrop-filter: blur(8px);
}

.rank-no {
  right: 12px;
  bottom: 12px;
  min-width: 46px;
  height: 34px;
  background: linear-gradient(135deg, var(--orange-600), var(--amber-600));
  font-style: normal;
}

.card-body {
  padding: 16px;
}

.card-meta {
  margin: 0 0 8px;
  color: var(--amber-700);
  font-size: 13px;
  font-weight: 800;
}

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

.card-body h3 a:hover {
  color: var(--orange-600);
}

.card-line {
  display: -webkit-box;
  min-height: 48px;
  margin: 10px 0 0;
  overflow: hidden;
  color: var(--gray-700);
  font-size: 14px;
  line-height: 1.7;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.tag-row span,
.meta-pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  color: var(--amber-800);
  background: var(--amber-100);
  font-size: 12px;
  font-weight: 800;
}

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

.rank-list {
  overflow: hidden;
  border: 1px solid rgba(253, 230, 138, 0.78);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.rank-item {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 15px 18px;
  border-bottom: 1px solid rgba(253, 230, 138, 0.55);
}

.rank-item:last-child {
  border-bottom: 0;
}

.rank-item span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  color: var(--white);
  background: var(--amber-600);
  font-weight: 900;
}

.rank-item strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-item em {
  color: var(--gray-500);
  font-style: normal;
  font-weight: 700;
}

.page-banner {
  padding: 58px 0 26px;
  background: radial-gradient(circle at 12% 20%, rgba(252, 211, 77, 0.44), transparent 30%);
}

.filter-panel {
  display: grid;
  grid-template-columns: 1fr 180px 180px;
  gap: 12px;
  margin-bottom: 24px;
  padding: 16px;
  border: 1px solid rgba(253, 230, 138, 0.78);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-soft);
}

.empty-message {
  display: none;
  padding: 34px;
  border-radius: var(--radius);
  color: var(--gray-700);
  text-align: center;
  background: var(--white);
}

.empty-message.show {
  display: block;
}

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

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

.detail-card,
.sidebar-card,
.player-section {
  border: 1px solid rgba(253, 230, 138, 0.78);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-soft);
}

.detail-card {
  padding: 28px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 18px;
  color: var(--amber-700);
  font-size: 14px;
  font-weight: 800;
}

.detail-title {
  margin: 0 0 14px;
  color: var(--amber-900);
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 16px 0 24px;
}

.player-section {
  overflow: hidden;
  margin-bottom: 26px;
  background: var(--gray-900);
}

.player-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.movie-video {
  width: 100%;
  height: 100%;
  background: #000000;
}

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border: 0;
  color: var(--white);
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.36));
  cursor: pointer;
  transition: opacity 0.25s ease;
}

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

.play-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  color: var(--white);
  background: linear-gradient(135deg, var(--orange-600), var(--amber-600));
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.34);
  font-size: 34px;
  transform: translateX(3px);
}

.play-title {
  max-width: min(80%, 720px);
  font-size: clamp(20px, 4vw, 34px);
  font-weight: 900;
  line-height: 1.25;
  text-align: center;
}

.content-block h2,
.sidebar-card h2 {
  margin: 0 0 14px;
  color: var(--amber-900);
  font-size: 24px;
}

.content-block p {
  margin: 0 0 18px;
  color: var(--gray-700);
  font-size: 16px;
  line-height: 1.95;
}

.sidebar-card {
  overflow: hidden;
  padding: 18px;
}

.detail-poster {
  overflow: hidden;
  aspect-ratio: 2 / 3;
  margin-bottom: 18px;
  border-radius: 22px;
  background: var(--amber-100);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.site-footer {
  margin-top: 48px;
  padding: 40px 0;
  color: rgba(255, 251, 235, 0.82);
  background: linear-gradient(135deg, #78350f, #111827);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 28px;
}

.footer-inner p {
  max-width: 560px;
  margin: 10px 0 0;
  line-height: 1.8;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-content: start;
  justify-content: end;
}

.footer-links a {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

@media (max-width: 980px) {
  .hero-content,
  .rank-panel,
  .detail-layout {
    grid-template-columns: 1fr;
  }

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

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

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

@media (max-width: 720px) {
  .container {
    width: min(100% - 22px, 1180px);
  }

  .menu-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    left: 11px;
    right: 11px;
    top: 76px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border: 1px solid rgba(253, 230, 138, 0.78);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-soft);
  }

  .main-nav.open {
    display: flex;
  }

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

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

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

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

  .section-head,
  .page-head,
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .card-body {
    padding: 13px;
  }

  .card-body h3 {
    font-size: 16px;
  }

  .detail-card {
    padding: 18px;
  }
}

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

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

  .rank-item em {
    grid-column: 2;
  }
}
