:root {
  color-scheme: light;
  --amber-950: #451a03;
  --amber-900: #78350f;
  --amber-800: #92400e;
  --amber-700: #b45309;
  --amber-600: #d97706;
  --amber-500: #f59e0b;
  --orange-600: #ea580c;
  --stone-950: #1c1917;
  --stone-900: #292524;
  --stone-700: #44403c;
  --stone-600: #57534e;
  --stone-500: #78716c;
  --stone-200: #e7e5e4;
  --stone-100: #f5f5f4;
  --stone-50: #fafaf9;
  --white: #ffffff;
  --shadow-sm: 0 8px 20px rgba(146, 64, 14, 0.08);
  --shadow-md: 0 18px 45px rgba(146, 64, 14, 0.14);
  --shadow-lg: 0 30px 70px rgba(146, 64, 14, 0.18);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(217, 119, 6, 0.18);
  background: rgba(255, 251, 235, 0.92);
  backdrop-filter: blur(16px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-600), var(--orange-600));
  box-shadow: var(--shadow-sm);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong {
  font-size: 22px;
  letter-spacing: -0.03em;
  color: var(--amber-900);
}

.brand-text small {
  margin-top: 4px;
  color: var(--amber-700);
  font-size: 12px;
}

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

.nav-link,
.mobile-nav-link {
  border-radius: 12px;
  color: var(--amber-800);
  font-weight: 700;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.nav-link {
  padding: 10px 14px;
}

.nav-link:hover,
.nav-link.active,
.mobile-nav-link:hover,
.mobile-nav-link.active {
  background: rgba(245, 158, 11, 0.13);
  color: var(--orange-600);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: rgba(245, 158, 11, 0.12);
  color: var(--amber-900);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.mobile-nav {
  display: none;
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
  padding: 0 0 16px;
}

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

.mobile-nav-link {
  padding: 12px 14px;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 56px 0 44px;
  background:
    radial-gradient(circle at 85% 12%, rgba(251, 146, 60, 0.28), transparent 30%),
    radial-gradient(circle at 12% 28%, rgba(245, 158, 11, 0.22), transparent 34%),
    linear-gradient(135deg, #fffbeb 0%, #fff7ed 45%, #fef3c7 100%);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(3px);
  opacity: 0.65;
  pointer-events: none;
}

.hero::before {
  width: 360px;
  height: 360px;
  right: -110px;
  top: 10px;
  background: rgba(217, 119, 6, 0.15);
}

.hero::after {
  width: 260px;
  height: 260px;
  left: -80px;
  bottom: -40px;
  background: rgba(234, 88, 12, 0.14);
}

.hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  gap: 34px;
  align-items: center;
}

.hero-copy {
  display: grid;
  gap: 22px;
}

.hero-kicker {
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--amber-700);
  font-size: 14px;
  font-weight: 800;
  box-shadow: var(--shadow-sm);
}

.hero h1 {
  margin: 0;
  color: var(--amber-950);
  font-size: clamp(36px, 6vw, 66px);
  line-height: 1.04;
  letter-spacing: -0.06em;
}

.hero-lead {
  max-width: 690px;
  margin: 0;
  color: var(--amber-800);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.8;
}

.hero-actions,
.hero-links,
.section-actions,
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 14px;
  padding: 12px 18px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

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

.btn-primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-600), var(--orange-600));
  box-shadow: var(--shadow-md);
}

.btn-ghost {
  color: var(--amber-800);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: var(--shadow-sm);
}

.hero-links a,
.category-chip-row a {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 9px 13px;
  color: var(--amber-800);
  background: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  font-weight: 700;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.hero-links a:hover,
.category-chip-row a:hover {
  color: var(--white);
  background: var(--amber-600);
  transform: translateY(-2px);
}

.hero-search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow-sm);
}

.hero-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 10px 8px;
  color: var(--stone-900);
}

.hero-search button {
  border: 0;
}

.hero-stage {
  display: grid;
  gap: 16px;
}

.hero-slider {
  position: relative;
  min-height: 515px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--stone-950);
  box-shadow: var(--shadow-lg);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 480ms ease, transform 600ms ease;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
}

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

.hero-slide-content {
  position: absolute;
  inset: auto 0 0;
  padding: 150px 28px 28px;
  color: var(--white);
  background: linear-gradient(180deg, transparent, rgba(28, 25, 23, 0.92));
}

.hero-slide-content strong {
  display: block;
  margin-bottom: 10px;
  font-size: 30px;
  line-height: 1.2;
}

.hero-slide-content p {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.7;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.hero-pills span {
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 13px;
  font-weight: 700;
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.slider-dots button {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(180, 83, 9, 0.28);
  cursor: pointer;
}

.slider-dots button.active {
  width: 30px;
  background: var(--amber-600);
}

.section {
  padding: 54px 0;
}

.section.alt {
  background: rgba(255, 255, 255, 0.72);
}

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

.section-kicker {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--amber-700);
  font-weight: 900;
}

.section h2,
.page-title h1,
.detail-content h1 {
  margin: 0;
  color: var(--stone-950);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.16;
  letter-spacing: -0.04em;
}

.section-head p,
.page-title p {
  margin: 10px 0 0;
  color: var(--stone-600);
  line-height: 1.8;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(217, 119, 6, 0.09);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: rgba(217, 119, 6, 0.24);
  box-shadow: var(--shadow-md);
}

.poster-wrap {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #fef3c7, #fed7aa);
}

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

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

.poster-badge,
.poster-play {
  position: absolute;
  border-radius: 999px;
  color: var(--white);
  background: rgba(28, 25, 23, 0.72);
  backdrop-filter: blur(8px);
}

.poster-badge {
  top: 10px;
  left: 10px;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 800;
}

.poster-play {
  right: 10px;
  bottom: 10px;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--amber-600), var(--orange-600));
  box-shadow: 0 10px 24px rgba(234, 88, 12, 0.34);
}

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

.movie-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  min-height: 44px;
  overflow: hidden;
  font-weight: 900;
  line-height: 1.35;
  color: var(--stone-900);
  transition: color 180ms ease;
}

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

.movie-meta {
  display: flex;
  gap: 8px;
  margin: 8px 0 10px;
  color: var(--stone-500);
  font-size: 13px;
}

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

.card-tags,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.card-tags span,
.detail-tags span {
  border-radius: 999px;
  padding: 5px 9px;
  background: rgba(245, 158, 11, 0.13);
  color: var(--amber-800);
  font-size: 12px;
  font-weight: 700;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 22px;
}

.rank-panel,
.category-panel,
.search-panel,
.detail-card,
.sidebar-card,
.text-panel {
  border: 1px solid rgba(217, 119, 6, 0.1);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-sm);
}

.rank-panel,
.category-panel,
.search-panel,
.text-panel {
  padding: 24px;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 46px 68px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  transition: background 180ms ease, transform 180ms ease;
}

.rank-row:hover {
  background: rgba(245, 158, 11, 0.11);
  transform: translateX(3px);
}

.rank-index {
  font-weight: 950;
  color: var(--amber-600);
  font-size: 22px;
}

.rank-row img {
  width: 68px;
  height: 88px;
  object-fit: cover;
  border-radius: 12px;
}

.rank-info {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.rank-info strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-info small {
  color: var(--stone-500);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-score {
  border-radius: 999px;
  padding: 7px 10px;
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-600), var(--orange-600));
  font-size: 13px;
  font-weight: 900;
}

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

.category-tile {
  min-height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: var(--radius-md);
  padding: 20px;
  background: linear-gradient(135deg, #fff7ed, #fffbeb);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(217, 119, 6, 0.11);
  transition: transform 200ms ease, box-shadow 200ms ease;
}

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

.category-tile strong {
  color: var(--amber-900);
  font-size: 20px;
}

.category-tile p {
  margin: 10px 0 0;
  color: var(--stone-600);
  line-height: 1.65;
}

.category-tile span {
  margin-top: 18px;
  color: var(--amber-700);
  font-weight: 800;
}

.page-hero {
  padding: 50px 0;
  background: linear-gradient(135deg, #fff7ed, #fef3c7);
}

.page-title {
  max-width: 820px;
}

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

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

.filter-box {
  margin-top: 24px;
  display: grid;
  gap: 14px;
}

.filter-input,
.filter-select {
  border: 1px solid rgba(217, 119, 6, 0.18);
  border-radius: 14px;
  background: var(--white);
  outline: 0;
  padding: 12px 14px;
  color: var(--stone-900);
  box-shadow: var(--shadow-sm);
}

.filter-input {
  min-width: min(460px, 100%);
}

.detail-page {
  padding: 36px 0 58px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 26px;
  align-items: start;
}

.detail-card {
  overflow: hidden;
}

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

.player-wrap video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #050505;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(28, 25, 23, 0.72);
  cursor: pointer;
}

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

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

.player-button {
  position: relative;
  z-index: 1;
  width: 86px;
  height: 86px;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-600), var(--orange-600));
  box-shadow: 0 20px 46px rgba(234, 88, 12, 0.36);
  font-size: 32px;
  cursor: pointer;
  transition: transform 180ms ease;
}

.player-button:hover {
  transform: scale(1.06);
}

.player-message {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
  z-index: 2;
  display: none;
  border-radius: 12px;
  padding: 10px 12px;
  color: var(--white);
  background: rgba(28, 25, 23, 0.72);
  text-align: center;
}

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

.detail-content {
  padding: 28px;
}

.detail-content h1 {
  margin-bottom: 14px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

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

.detail-section {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--stone-200);
}

.detail-section h2 {
  margin: 0 0 12px;
  color: var(--stone-950);
  font-size: 22px;
}

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

.review-box {
  border-radius: var(--radius-md);
  padding: 20px;
  background: linear-gradient(135deg, #fffbeb, #fff7ed);
}

.sidebar-card {
  position: sticky;
  top: 96px;
  padding: 20px;
}

.sidebar-card h2 {
  margin: 0 0 16px;
  font-size: 22px;
}

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

.related-item {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 12px;
  align-items: center;
  border-radius: 14px;
  padding: 8px;
  transition: background 180ms ease;
}

.related-item:hover {
  background: rgba(245, 158, 11, 0.11);
}

.related-item img {
  width: 96px;
  height: 66px;
  border-radius: 10px;
  object-fit: cover;
}

.related-item strong {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
}

.related-item small {
  display: block;
  margin-top: 6px;
  color: var(--stone-500);
}

.site-footer {
  padding: 42px 0;
  background: var(--stone-950);
  color: rgba(255, 255, 255, 0.82);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr;
  gap: 24px;
}

.footer-logo {
  color: var(--white);
  font-size: 24px;
  font-weight: 950;
}

.site-footer p {
  max-width: 560px;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.8;
}

.site-footer h2 {
  margin: 0 0 12px;
  color: var(--white);
  font-size: 18px;
}

.site-footer a:not(.footer-logo) {
  display: block;
  margin: 8px 0;
  color: rgba(255, 255, 255, 0.72);
}

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

.empty-message {
  display: none;
  padding: 34px;
  border-radius: var(--radius-md);
  background: var(--white);
  color: var(--stone-600);
  text-align: center;
  box-shadow: var(--shadow-sm);
}

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

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

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

  .sidebar-card {
    position: static;
  }
}

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

  .menu-toggle {
    display: inline-flex;
  }

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

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

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

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

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

@media (max-width: 640px) {
  .container {
    width: min(100% - 24px, var(--container));
  }

  .brand-text small {
    display: none;
  }

  .brand-text strong {
    font-size: 19px;
  }

  .hero {
    padding-top: 34px;
  }

  .hero-search {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-search input,
  .hero-search button {
    width: 100%;
  }

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

  .hero-slide-content {
    padding: 110px 18px 22px;
  }

  .hero-slide-content strong {
    font-size: 23px;
  }

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

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

  .movie-card-body p,
  .card-tags {
    display: none;
  }

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

  .rank-row img {
    width: 58px;
    height: 76px;
  }

  .rank-score {
    display: none;
  }

  .detail-content {
    padding: 20px;
  }

  .related-item {
    grid-template-columns: 78px 1fr;
  }

  .related-item img {
    width: 78px;
    height: 58px;
  }
}
