* {
  box-sizing: border-box;
}

:root {
  --amber-50: #fff7ed;
  --amber-100: #ffedd5;
  --amber-200: #fed7aa;
  --amber-600: #d97706;
  --amber-700: #b45309;
  --amber-800: #92400e;
  --amber-900: #78350f;
  --orange-800: #9a3412;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #f3e1c4;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(120, 53, 15, 0.13);
  --soft-shadow: 0 10px 25px rgba(120, 53, 15, 0.1);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: linear-gradient(180deg, var(--amber-50), #ffffff 45%, #fff7ed);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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;
  background: linear-gradient(90deg, var(--amber-900), var(--orange-800), var(--amber-900));
  box-shadow: 0 10px 26px rgba(67, 20, 7, 0.28);
}

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

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

.brand:hover {
  color: #ffffff;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #78350f;
  background: linear-gradient(135deg, #fde68a, #f59e0b);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

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

.brand-text strong {
  font-size: 20px;
  letter-spacing: 0.5px;
}

.brand-text small {
  margin-top: 3px;
  color: rgba(255, 237, 213, 0.8);
  font-size: 12px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: #ffedd5;
  font-weight: 600;
}

.desktop-nav a,
.nav-dropdown button {
  padding: 20px 0;
  border: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
}

.desktop-nav a:hover,
.nav-dropdown button:hover,
.desktop-nav .nav-active {
  color: #ffffff;
}

.nav-dropdown {
  position: relative;
}

.dropdown-panel {
  position: absolute;
  top: calc(100% + 2px);
  right: 0;
  width: 220px;
  padding: 8px;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: 0.2s ease;
}

.nav-dropdown:hover .dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-panel a {
  display: block;
  padding: 9px 12px;
  border-radius: 10px;
  color: #374151;
}

.dropdown-panel a:hover {
  color: var(--amber-900);
  background: var(--amber-50);
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
}

.mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  border-radius: 999px;
  background: #ffedd5;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 8px 0 18px;
}

.mobile-nav a {
  display: block;
  padding: 10px 14px;
  border-radius: 10px;
  color: #ffedd5;
}

.mobile-nav a:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.hero {
  position: relative;
  height: 72vh;
  min-height: 520px;
  overflow: hidden;
  background: #000000;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 0.9s ease, transform 1.2s ease;
}

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

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.96), rgba(0, 0, 0, 0.52) 45%, rgba(0, 0, 0, 0.08));
}

.hero-content {
  position: absolute;
  left: max(32px, calc((100% - 1180px) / 2));
  right: 32px;
  bottom: 76px;
  max-width: 760px;
  color: #ffffff;
}

.hero-pill,
.page-kicker,
.section-kicker,
.pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  color: #78350f;
  background: #ffedd5;
  font-size: 13px;
  font-weight: 700;
}

.hero-pill {
  padding: 8px 16px;
  color: #ffffff;
  background: var(--amber-600);
}

.hero-content h1 {
  margin: 18px 0 16px;
  font-size: clamp(34px, 6vw, 64px);
  line-height: 1.08;
}

.hero-content p {
  max-width: 700px;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(17px, 2.4vw, 22px);
}

.hero-actions,
.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-weight: 800;
  transition: 0.2s ease;
}

.btn-primary {
  color: #ffffff;
  background: var(--amber-600);
  box-shadow: 0 10px 25px rgba(217, 119, 6, 0.28);
}

.btn-primary:hover {
  background: var(--amber-700);
  transform: translateY(-2px);
}

.btn-ghost {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(10px);
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.14);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.45);
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
  transition: 0.2s ease;
}

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

.hero-prev {
  left: 22px;
}

.hero-next {
  right: 22px;
}

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

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

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

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

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

.section-kicker,
.page-kicker {
  padding: 6px 12px;
}

.section-head h2,
.page-hero h1,
.detail-card h1,
.detail-card h2,
.side-card h2 {
  margin: 8px 0 0;
  color: #1f2937;
  line-height: 1.18;
}

.section-head h2 {
  font-size: clamp(26px, 4vw, 36px);
}

.section-head p {
  max-width: 680px;
  margin: 8px 0 0;
  color: var(--muted);
}

.section-more {
  flex: 0 0 auto;
  color: var(--amber-700);
  font-weight: 800;
}

.section-more:hover {
  color: var(--amber-900);
}

.inverse h2,
.inverse p,
.section-more.light {
  color: #ffffff;
}

.inverse .section-kicker {
  color: #78350f;
  background: #fde68a;
}

.grid {
  display: grid;
  gap: 24px;
}

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

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

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

.movie-card,
.rank-card {
  display: block;
  overflow: hidden;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: var(--soft-shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster-frame {
  position: relative;
  display: block;
  overflow: hidden;
  background: #111827;
}

.poster-wide {
  aspect-ratio: 16 / 9;
}

.poster-tall {
  aspect-ratio: 3 / 4;
}

.poster-side {
  width: 190px;
  min-height: 136px;
  flex: 0 0 auto;
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.84), rgba(0, 0, 0, 0.05));
  transition: opacity 0.25s ease;
}

.poster-hover-text {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  display: -webkit-box;
  overflow: hidden;
  color: #ffffff;
  font-size: 14px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.movie-card:hover .poster-shade,
.movie-card:hover .poster-hover-text {
  opacity: 1;
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 16px;
}

.movie-card-large .card-body {
  padding: 22px;
}

.card-meta-row,
.card-foot,
.detail-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pill {
  padding: 4px 10px;
  white-space: nowrap;
}

.rating {
  color: var(--amber-700);
  font-weight: 900;
}

.rating.corner {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 8px;
  border-radius: 9px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.72);
  font-size: 13px;
}

.rating.big {
  font-size: 18px;
}

.movie-card strong {
  display: -webkit-box;
  overflow: hidden;
  color: #1f2937;
  font-size: 17px;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.card-desc {
  display: -webkit-box;
  overflow: hidden;
  color: #5f6b7a;
  font-size: 14px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-foot,
.muted {
  color: var(--muted);
  font-size: 13px;
}

.movie-card-horizontal {
  display: flex;
}

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

.movie-card-compact strong {
  font-size: 14px;
}

.spotlight-section {
  padding: 36px;
  border-radius: 28px;
  background: linear-gradient(90deg, #ffedd5, #fff7ed, #ffedd5);
  box-shadow: var(--soft-shadow);
}

.stack-list {
  display: grid;
  gap: 18px;
}

.small-gap {
  gap: 14px;
}

.dual-panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.panel-card {
  padding: 24px;
  border: 2px solid #fed7aa;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: var(--soft-shadow);
}

.panel-card-alt {
  border-color: #fdba74;
}

.panel-card h3 {
  margin: 0 0 18px;
  font-size: 25px;
}

.dark-feature,
.more-section {
  width: min(1180px, calc(100% - 32px));
  margin-top: 22px;
  padding: 36px;
  border-radius: 28px;
  background: linear-gradient(135deg, #78350f, #9a3412);
  box-shadow: var(--shadow);
}

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

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

.rank-card {
  display: grid;
  grid-template-columns: 76px 90px minmax(0, 1fr) 74px;
  align-items: center;
  gap: 16px;
  padding: 12px;
}

.rank-number {
  color: var(--amber-700);
  font-size: 26px;
  font-weight: 900;
  text-align: center;
}

.rank-card img {
  width: 90px;
  height: 90px;
  border-radius: 13px;
  object-fit: cover;
}

.rank-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.rank-info strong,
.rank-info em {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
}

.rank-info strong {
  color: #1f2937;
  font-style: normal;
  font-size: 17px;
  -webkit-line-clamp: 1;
}

.rank-info span,
.rank-info em {
  color: var(--muted);
  font-size: 13px;
}

.rank-info em {
  font-style: normal;
  -webkit-line-clamp: 2;
}

.rank-score {
  color: var(--amber-700);
  font-size: 24px;
  font-weight: 900;
  text-align: right;
}

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

.category-tile {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--soft-shadow);
  transition: 0.25s ease;
}

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

.tile-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.tile-thumbs img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 12px;
  object-fit: cover;
}

.category-tile strong {
  color: #1f2937;
  font-size: 20px;
}

.category-tile span:last-child {
  color: var(--muted);
  font-size: 14px;
}

.page-hero {
  color: #ffffff;
  background: radial-gradient(circle at 20% 0%, rgba(251, 191, 36, 0.35), transparent 32%), linear-gradient(90deg, var(--amber-900), var(--orange-800), var(--amber-900));
}

.page-hero-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 64px 0;
}

.page-kicker {
  color: #78350f;
  background: #fde68a;
}

.page-hero h1 {
  max-width: 880px;
  color: #ffffff;
  font-size: clamp(34px, 5vw, 54px);
}

.page-hero p {
  max-width: 760px;
  margin: 16px 0 26px;
  color: rgba(255, 237, 213, 0.9);
  font-size: 18px;
}

.categories-wrap {
  display: grid;
  gap: 24px;
}

.category-preview {
  padding: 28px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--soft-shadow);
}

.compact-grid .movie-card-compact:nth-child(n+5) {
  display: none;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) repeat(3, minmax(150px, 190px));
  gap: 14px;
  margin-bottom: 28px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--soft-shadow);
}

.filter-bar label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.filter-bar input,
.filter-bar select {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 1px solid #f1d2ad;
  border-radius: 12px;
  outline: 0;
  background: #ffffff;
  color: #1f2937;
}

.filter-bar input:focus,
.filter-bar select:focus {
  border-color: var(--amber-600);
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.12);
}

.empty-state {
  display: none;
  padding: 48px 20px;
  color: var(--muted);
  text-align: center;
}

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

.player-top {
  padding: 18px 0 34px;
  background: #050505;
}

.breadcrumb {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #d1d5db;
  font-size: 14px;
}

.breadcrumb a:hover {
  color: #fbbf24;
}

.player-shell {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  overflow: hidden;
  border-radius: 22px;
  background: #000000;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.42);
  aspect-ratio: 16 / 9;
}

.player-shell video {
  width: 100%;
  height: 100%;
  background: #000000;
  cursor: pointer;
}

.player-start {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.58));
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-start span {
  width: 72px;
  height: 72px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #78350f;
  background: #fbbf24;
  font-size: 34px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
}

.player-start strong {
  font-size: 19px;
}

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

.detail-layout {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0 10px;
  display: grid;
  grid-template-columns: minmax(0, 2fr) 360px;
  gap: 28px;
}

.detail-main {
  display: grid;
  gap: 22px;
}

.detail-card,
.side-card {
  padding: 28px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: var(--soft-shadow);
}

.detail-meta {
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-bottom: 12px;
  color: var(--muted);
}

.detail-card h1 {
  font-size: clamp(30px, 4vw, 44px);
}

.detail-card h2,
.side-card h2 {
  margin-bottom: 14px;
  font-size: 24px;
}

.detail-card p {
  margin: 0;
  color: #374151;
  font-size: 17px;
  line-height: 1.9;
}

.lead-text {
  margin-top: 16px !important;
  font-size: 19px !important;
}

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

.tag-cloud span {
  padding: 6px 10px;
  border-radius: 999px;
  color: #7c2d12;
  background: #ffedd5;
  font-size: 13px;
  font-weight: 700;
}

.detail-side {
  min-width: 0;
}

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

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

.related-item {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

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

.related-item strong {
  display: -webkit-box;
  overflow: hidden;
  color: #1f2937;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.related-item:hover strong {
  color: var(--amber-700);
}

.related-item em {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

.detail-more {
  padding-top: 28px;
}

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

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

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

  .side-card {
    position: static;
  }

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

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

  .mobile-toggle {
    display: block;
  }

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

  .brand-text small {
    display: none;
  }

  .hero {
    height: 76vh;
    min-height: 500px;
  }

  .hero-content {
    left: 20px;
    right: 20px;
    bottom: 82px;
  }

  .hero-arrow {
    width: 40px;
    height: 40px;
    font-size: 30px;
  }

  .hero-prev {
    left: 10px;
  }

  .hero-next {
    right: 10px;
  }

  .section-head,
  .dual-panels {
    display: grid;
    grid-template-columns: 1fr;
  }

  .grid-3,
  .grid-4,
  .grid-6,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .spotlight-section,
  .dark-feature,
  .more-section,
  .category-preview,
  .panel-card,
  .detail-card,
  .side-card {
    padding: 20px;
    border-radius: 20px;
  }

  .movie-card-horizontal {
    display: grid;
  }

  .poster-side {
    width: 100%;
    aspect-ratio: 16 / 9;
  }

  .rank-card {
    grid-template-columns: 56px 74px minmax(0, 1fr);
  }

  .rank-card img {
    width: 74px;
    height: 74px;
  }

  .rank-score {
    grid-column: 2 / 4;
    text-align: left;
    font-size: 18px;
  }

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

  .player-shell {
    width: 100%;
    border-radius: 0;
  }

  .player-top {
    padding-bottom: 0;
  }

  .detail-layout {
    width: min(100% - 24px, 1180px);
    padding-top: 24px;
  }
}
