:root {
  color-scheme: light;
  --blue-900: #172554;
  --blue-800: #1e40af;
  --blue-700: #1d4ed8;
  --blue-600: #2563eb;
  --orange-600: #ea580c;
  --orange-500: #f97316;
  --orange-100: #ffedd5;
  --gray-950: #030712;
  --gray-900: #111827;
  --gray-800: #1f2937;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-500: #6b7280;
  --gray-300: #d1d5db;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --shadow-soft: 0 10px 28px rgba(15, 23, 42, 0.10);
  --radius-xl: 22px;
  --radius-lg: 16px;
  --radius-md: 12px;
}

* {
  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(--gray-800);
  background: #f9fafb;
  line-height: 1.65;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: var(--white);
  background: linear-gradient(90deg, var(--blue-600), var(--blue-800));
  box-shadow: 0 12px 24px rgba(30, 64, 175, 0.28);
}

.header-inner {
  min-height: 66px;
  display: flex;
  align-items: center;
  gap: 24px;
}

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

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--orange-500);
  font-weight: 800;
  box-shadow: 0 10px 20px rgba(249, 115, 22, 0.35);
}

.brand-copy {
  display: grid;
  gap: 1px;
}

.brand-copy strong {
  font-size: 20px;
  letter-spacing: 0.02em;
}

.brand-copy small {
  color: #bfdbfe;
  font-size: 12px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
}

.nav-link {
  position: relative;
  padding: 21px 0;
  color: rgba(255, 255, 255, 0.88);
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: #fed7aa;
}

.nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  height: 3px;
  border-radius: 999px;
  background: var(--orange-500);
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-search input {
  width: 178px;
  border: 0;
  outline: 0;
  border-radius: 999px;
  padding: 9px 14px;
  color: var(--gray-900);
  background: rgba(255, 255, 255, 0.94);
}

.header-search button,
.promo-search button {
  border: 0;
  cursor: pointer;
  color: var(--white);
  background: var(--orange-500);
  border-radius: 999px;
  padding: 9px 16px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.header-search button:hover,
.promo-search button:hover {
  background: var(--orange-600);
  transform: translateY(-1px);
}

.menu-button {
  display: none;
  margin-left: auto;
  color: var(--white);
  border: 0;
  background: transparent;
  font-size: 26px;
  cursor: pointer;
}

.mobile-panel {
  display: none;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

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

.mobile-nav {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 16px 0 22px;
  display: grid;
  gap: 12px;
}

.mobile-nav a {
  color: rgba(255, 255, 255, 0.9);
}

.hero {
  position: relative;
  height: 500px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--blue-900), var(--blue-700), var(--blue-900));
}

.hero-stage,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.9s ease;
}

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

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.32;
  transform: scale(1.02);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(3, 7, 18, 0.88), rgba(3, 7, 18, 0.52), rgba(3, 7, 18, 0.16));
}

.hero-content {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.hero-copy {
  max-width: 670px;
  color: var(--white);
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  margin-bottom: 12px;
  color: #facc15;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1,
.hero h2 {
  margin: 0 0 12px;
  font-size: clamp(40px, 7vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero-title {
  margin: 0 0 12px;
  font-size: clamp(24px, 4vw, 38px);
  font-weight: 800;
}

.hero-text {
  max-width: 620px;
  margin: 0 0 28px;
  color: #e5e7eb;
  font-size: 18px;
}

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

.hero-chips {
  margin-top: 18px;
}

.hero-chip {
  padding: 7px 12px;
  border-radius: 999px;
  color: #dbeafe;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

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

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

.btn-primary {
  color: var(--white);
  background: var(--orange-500);
  box-shadow: 0 12px 25px rgba(249, 115, 22, 0.28);
}

.btn-primary:hover {
  background: var(--orange-600);
}

.btn-ghost {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.08);
}

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

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

.hero-dot.is-active {
  width: 34px;
  background: var(--orange-500);
}

.section-block {
  padding: 56px 0;
}

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

.section-head h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.1;
  color: var(--gray-900);
}

.section-kicker {
  margin-bottom: 8px;
  color: var(--orange-500);
  font-size: 13px;
}

.section-more {
  color: var(--blue-600);
  font-weight: 800;
}

.light-head h2,
.light-head .section-more {
  color: var(--white);
}

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

.movie-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-soft);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

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

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

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

.poster-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 8px;
  border-radius: 8px;
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
  background: rgba(3, 7, 18, 0.72);
}

.card-body {
  display: grid;
  gap: 8px;
  padding: 14px;
}

.card-body strong {
  min-height: 46px;
  color: var(--gray-900);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-body em {
  color: var(--gray-500);
  font-size: 13px;
  font-style: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tag-row,
.side-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-row span,
.side-tags span {
  color: var(--blue-700);
  font-size: 12px;
  border-radius: 999px;
  padding: 3px 8px;
  background: #dbeafe;
}

.movie-card.compact .card-body em,
.movie-card.compact .tag-row {
  display: none;
}

.category-band {
  padding: 56px 0;
  background: linear-gradient(135deg, #16a34a, #2563eb);
}

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

.category-card,
.category-overview-card {
  display: grid;
  gap: 12px;
  border-radius: var(--radius-xl);
  padding: 22px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.category-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: var(--white);
  background: var(--orange-500);
}

.category-card strong {
  font-size: 20px;
}

.category-card em,
.category-overview-card p {
  color: var(--gray-600);
  font-style: normal;
}

.mini-links {
  display: grid;
  gap: 6px;
  color: var(--blue-600);
  font-size: 13px;
}

.two-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.6fr);
  gap: 30px;
  align-items: start;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 42px 58px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease;
}

.rank-item:hover {
  transform: translateX(4px);
}

.rank-number {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--white);
  font-weight: 900;
  background: var(--orange-500);
}

.rank-item img {
  width: 58px;
  height: 78px;
  object-fit: cover;
  border-radius: 10px;
  background: var(--gray-200);
}

.rank-item strong,
.rank-item em {
  display: block;
}

.rank-item strong {
  color: var(--gray-900);
}

.rank-item em {
  margin-top: 4px;
  color: var(--gray-500);
  font-size: 13px;
  font-style: normal;
}

.promo-card {
  position: sticky;
  top: 92px;
  border-radius: var(--radius-xl);
  padding: 34px;
  color: var(--white);
  background: linear-gradient(135deg, var(--orange-500), #dc2626);
  box-shadow: var(--shadow);
}

.promo-card span {
  color: var(--orange-100);
  font-weight: 800;
}

.promo-card h2 {
  margin: 10px 0;
  font-size: 32px;
  line-height: 1.15;
}

.promo-card p {
  color: #ffedd5;
}

.promo-search {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}

.promo-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  border-radius: 999px;
  padding: 11px 14px;
}

.page-hero,
.detail-hero {
  color: var(--white);
  padding: 62px 0;
  background: linear-gradient(135deg, var(--blue-600), var(--orange-600));
}

.page-hero h1,
.detail-hero h1 {
  margin: 8px 0 12px;
  font-size: clamp(38px, 6vw, 56px);
  line-height: 1.08;
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 14px;
}

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

.category-overview-list {
  display: grid;
  gap: 28px;
  padding: 56px 0;
}

.category-overview-card {
  grid-template-columns: 0.8fr 1.2fr;
  align-items: center;
}

.category-overview-copy span {
  color: var(--orange-500);
  font-weight: 800;
}

.category-overview-copy h2 {
  margin: 8px 0;
  font-size: 34px;
}

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

.filter-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px 180px;
  gap: 14px;
  padding: 18px;
  margin-bottom: 28px;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.filter-bar input,
.filter-bar select {
  width: 100%;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  outline: 0;
  padding: 12px 14px;
  background: var(--white);
}

.empty-state {
  display: none;
  margin-top: 18px;
  padding: 28px;
  text-align: center;
  color: var(--gray-500);
  border-radius: var(--radius-lg);
  background: var(--white);
}

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

.ranking-page {
  max-width: 940px;
}

.wide-rank .rank-item {
  grid-template-columns: 54px 76px minmax(0, 1fr);
}

.wide-rank .rank-item img {
  width: 76px;
  height: 104px;
}

.detail-hero {
  padding-bottom: 46px;
  background: radial-gradient(circle at top right, rgba(249, 115, 22, 0.42), transparent 34%), linear-gradient(135deg, #030712, #172554 52%, #111827);
}

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

.detail-meta span {
  color: #dbeafe;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.08);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 24px;
  align-items: stretch;
}

.player-card,
.detail-side,
.content-card {
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow);
}

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

.movie-video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  cursor: pointer;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0.58));
}

.play-overlay span {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  font-size: 36px;
  background: var(--orange-500);
  box-shadow: 0 18px 40px rgba(249, 115, 22, 0.42);
}

.player-shell.is-playing .play-overlay {
  display: none;
}

.detail-side {
  padding: 16px;
  color: var(--gray-800);
}

.detail-side img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  background: var(--gray-200);
}

.side-tags {
  margin-top: 14px;
}

.detail-content {
  display: grid;
  gap: 36px;
  padding: 48px 0 64px;
}

.content-card {
  padding: clamp(24px, 4vw, 42px);
}

.content-card h2 {
  margin: 0 0 16px;
  color: var(--gray-900);
  font-size: 28px;
}

.content-card p {
  margin: 0 0 28px;
  color: var(--gray-700);
  font-size: 17px;
}

.info-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
}

.info-list div {
  padding: 14px;
  border-radius: 14px;
  background: var(--gray-100);
}

.info-list dt {
  color: var(--gray-500);
  font-size: 13px;
}

.info-list dd {
  margin: 4px 0 0;
  color: var(--gray-900);
  font-weight: 800;
}

.related-block {
  padding: 0;
}

.site-footer {
  color: #d1d5db;
  background: var(--gray-900);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr 0.8fr;
  gap: 36px;
  padding: 42px 0;
}

.footer-brand {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--white);
  font-size: 22px;
  font-weight: 900;
}

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

.site-footer p {
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.footer-links a:hover {
  color: #fed7aa;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 16px;
  text-align: center;
  color: #9ca3af;
}

.tone-blue .category-icon,
.tone-blue .rank-number {
  background: #2563eb;
}

.tone-orange .category-icon,
.tone-orange .rank-number {
  background: #f97316;
}

.tone-green .category-icon,
.tone-green .rank-number {
  background: #16a34a;
}

.tone-purple .category-icon,
.tone-purple .rank-number {
  background: #9333ea;
}

.tone-rose .category-icon,
.tone-rose .rank-number {
  background: #e11d48;
}

.tone-slate .category-icon,
.tone-slate .rank-number {
  background: #475569;
}

.tone-red .category-icon,
.tone-red .rank-number {
  background: #dc2626;
}

.tone-amber .category-icon,
.tone-amber .rank-number {
  background: #d97706;
}

.tone-teal .category-icon,
.tone-teal .rank-number {
  background: #0d9488;
}

.tone-indigo .category-icon,
.tone-indigo .rank-number {
  background: #4f46e5;
}

.page-hero.tone-blue {
  background: linear-gradient(135deg, #2563eb, #1e40af);
}

.page-hero.tone-orange {
  background: linear-gradient(135deg, #f97316, #dc2626);
}

.page-hero.tone-green {
  background: linear-gradient(135deg, #16a34a, #15803d);
}

.page-hero.tone-purple {
  background: linear-gradient(135deg, #9333ea, #6d28d9);
}

.page-hero.tone-rose {
  background: linear-gradient(135deg, #e11d48, #be123c);
}

.page-hero.tone-slate {
  background: linear-gradient(135deg, #475569, #0f172a);
}

.page-hero.tone-red {
  background: linear-gradient(135deg, #dc2626, #991b1b);
}

.page-hero.tone-amber {
  background: linear-gradient(135deg, #d97706, #b45309);
}

.page-hero.tone-teal {
  background: linear-gradient(135deg, #0d9488, #115e59);
}

.page-hero.tone-indigo {
  background: linear-gradient(135deg, #4f46e5, #3730a3);
}

@media (max-width: 1080px) {
  .desktop-nav,
  .header-search {
    display: none;
  }

  .menu-button {
    display: block;
  }

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

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

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

@media (max-width: 820px) {
  .hero {
    height: 560px;
  }

  .section-head,
  .two-columns,
  .category-overview-card,
  .detail-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

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

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

  .detail-side {
    display: none;
  }

  .promo-card {
    position: static;
  }

  .info-list {
    grid-template-columns: 1fr;
  }
}

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

  .brand-copy small {
    display: none;
  }

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

  .hero-title {
    font-size: 24px;
  }

  .hero-text,
  .page-hero p,
  .detail-hero p {
    font-size: 16px;
  }

  .category-grid,
  .overview-samples {
    grid-template-columns: 1fr;
  }

  .rank-item {
    grid-template-columns: 36px 52px minmax(0, 1fr);
  }

  .promo-search {
    flex-direction: column;
  }
}
