:root {
  --bg: #f8fafc;
  --panel: #ffffff;
  --panel-soft: #f1f5f9;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --dark: #0f172a;
  --dark-2: #1e293b;
  --brand: #f59e0b;
  --brand-2: #ea580c;
  --brand-soft: #fffbeb;
  --radius: 22px;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(245, 158, 11, 0.12), transparent 34rem),
    linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}

img {
  display: block;
  width: 100%;
  height: auto;
}

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

main {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #fff;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.96), rgba(15, 23, 42, 0.98));
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.25);
  backdrop-filter: blur(16px);
}

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

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

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 10px 24px rgba(234, 88, 12, 0.28);
}

.brand-text {
  display: grid;
  line-height: 1.2;
}

.brand-text strong {
  font-size: 22px;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, #fbbf24, #fb923c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-text em {
  margin-top: 4px;
  color: #94a3b8;
  font-size: 12px;
  font-style: normal;
}

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

.nav-link,
.mobile-link {
  color: #cbd5e1;
  border-radius: 12px;
  transition: 0.2s ease;
}

.nav-link {
  padding: 10px 16px;
  font-weight: 650;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
  color: #fff;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  box-shadow: 0 10px 22px rgba(245, 158, 11, 0.2);
}

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

.menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: #fff;
  border-radius: 99px;
}

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

.mobile-link {
  display: block;
  padding: 12px 14px;
  margin-top: 8px;
}

.hero-shell {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 24px;
  padding: 32px 0 24px;
}

.hero-stage {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border-radius: 30px;
  box-shadow: var(--shadow);
  background: var(--dark);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: center;
  opacity: 0;
  padding: clamp(28px, 6vw, 74px);
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
  transition: opacity 0.65s ease, transform 1.2s ease;
}

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

.hero-copy {
  max-width: 680px;
  color: #fff;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #f59e0b;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
  margin: 12px 0 16px;
  font-size: clamp(36px, 5.2vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero-copy p,
.page-hero p,
.detail-copy .lead {
  max-width: 680px;
  color: #e2e8f0;
  font-size: 18px;
}

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

.primary-button,
.ghost-button,
.hero-panel-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 14px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.primary-button {
  color: #fff;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  box-shadow: 0 12px 28px rgba(245, 158, 11, 0.28);
}

.ghost-button {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

.primary-button:hover,
.ghost-button:hover,
.hero-panel-actions a:hover {
  transform: translateY(-2px);
}

.hero-dots {
  position: absolute;
  left: clamp(28px, 6vw, 74px);
  bottom: 32px;
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 28px;
  height: 7px;
  border: 0;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.32);
  cursor: pointer;
}

.hero-dot.is-active {
  width: 48px;
  background: linear-gradient(90deg, #fbbf24, #fb923c);
}

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

.hero-panel-card {
  min-height: 220px;
  padding: 24px;
  color: #fff;
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.35), transparent 9rem),
    linear-gradient(145deg, #111827, #1e293b);
  box-shadow: var(--shadow);
}

.hero-panel-card span {
  color: #fbbf24;
  font-weight: 850;
}

.hero-panel-card h2 {
  margin: 12px 0 10px;
  font-size: 30px;
}

.hero-panel-card p {
  color: #cbd5e1;
}

.hero-panel-actions a {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

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

.focus-card {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.focus-card:hover,
.movie-card:hover,
.category-card-wide:hover,
.rank-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.focus-card img {
  height: 112px;
  object-fit: cover;
  border-radius: 16px;
  background: var(--panel-soft);
}

.focus-card strong,
.focus-card em {
  display: block;
}

.focus-card strong {
  margin-bottom: 6px;
  font-size: 16px;
}

.focus-card em {
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
}

.category-ribbon {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 0 28px;
}

.category-chip {
  flex: 0 0 auto;
  padding: 10px 16px;
  border-radius: 999px;
  color: #92400e;
  background: #fffbeb;
  border: 1px solid #fde68a;
  font-weight: 750;
}

.search-strip,
.filter-bar {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 420px);
  gap: 16px;
  align-items: center;
  margin: 20px 0 34px;
  padding: 20px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-soft);
}

.search-strip span {
  display: block;
  color: var(--brand-2);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.search-strip strong {
  display: block;
  margin-top: 4px;
  font-size: 20px;
}

input[type="search"],
select {
  width: 100%;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 16px;
  outline: 0;
  color: var(--ink);
  background: #fff;
  font: inherit;
}

input[type="search"]:focus,
select:focus {
  border-color: #f59e0b;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.14);
}

.content-section {
  margin: 34px 0;
}

.section-title-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.section-title-row h2 {
  margin: 6px 0 0;
  font-size: clamp(26px, 3vw, 38px);
  letter-spacing: -0.03em;
}

.section-more {
  color: #b45309;
  font-weight: 850;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.85);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--panel-soft);
}

.poster-link img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.poster-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 5px 9px;
  border-radius: 999px;
  color: #fff;
  background: rgba(15, 23, 42, 0.78);
  font-size: 12px;
  font-weight: 850;
}

.card-body {
  padding: 16px;
}

.card-title {
  display: -webkit-box;
  min-height: 48px;
  overflow: hidden;
  color: var(--ink);
  font-size: 17px;
  font-weight: 850;
  line-height: 1.4;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-body p {
  display: -webkit-box;
  min-height: 45px;
  margin: 10px 0 12px;
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #64748b;
  font-size: 12px;
}

.card-meta a,
.card-meta span,
.tag-row span {
  padding: 4px 8px;
  border-radius: 999px;
  background: #f1f5f9;
}

.card-meta a {
  color: #b45309;
  background: #fffbeb;
}

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

.tag-row span {
  color: #475569;
  font-size: 12px;
}

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

.compact-card .card-title {
  min-height: 42px;
  font-size: 15px;
}

.compact-card .card-body p {
  display: none;
}

.page-hero {
  margin: 32px 0;
  padding: clamp(28px, 6vw, 70px);
  border-radius: 30px;
  color: #fff;
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
}

.soft-hero {
  background:
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.28), transparent 18rem),
    linear-gradient(135deg, #111827, #1e293b 55%, #0f172a);
}

.category-hero {
  min-height: 340px;
  display: grid;
  align-content: center;
}

.category-overview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin: 34px 0 48px;
}

.category-card-wide {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 18px;
  padding: 16px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-cover {
  overflow: hidden;
  border-radius: 20px;
  background: var(--panel-soft);
}

.category-cover img {
  height: 230px;
  object-fit: cover;
}

.category-index {
  color: var(--brand-2);
  font-weight: 900;
}

.category-card-wide h2 {
  margin: 6px 0 8px;
}

.category-card-wide p {
  margin: 0 0 14px;
  color: var(--muted);
}

.category-samples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.category-samples a {
  padding: 6px 10px;
  border-radius: 999px;
  color: #92400e;
  background: #fffbeb;
  font-size: 13px;
}

.filter-bar {
  grid-template-columns: minmax(240px, 1fr) repeat(3, minmax(150px, 200px));
}

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

.rank-item {
  display: grid;
  grid-template-columns: 56px 72px 1fr;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-number {
  color: #f59e0b;
  font-size: 22px;
  font-weight: 950;
  text-align: center;
}

.rank-item img {
  height: 96px;
  object-fit: cover;
  border-radius: 14px;
}

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

.rank-copy strong {
  font-size: 17px;
  font-weight: 850;
}

.rank-copy em {
  margin-top: 5px;
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
}

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

.breadcrumb a {
  color: #b45309;
  font-weight: 750;
}

.detail-hero {
  display: grid;
  grid-template-columns: 330px 1fr;
  gap: clamp(24px, 5vw, 56px);
  align-items: center;
  padding: clamp(22px, 5vw, 50px);
  border-radius: 32px;
  color: #fff;
  background:
    radial-gradient(circle at bottom left, rgba(245, 158, 11, 0.28), transparent 18rem),
    linear-gradient(135deg, #111827, #1e293b 58%, #0f172a);
  box-shadow: var(--shadow);
}

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.35);
  background: var(--panel-soft);
}

.detail-poster img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

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

.detail-meta span,
.detail-meta a {
  padding: 8px 12px;
  border-radius: 999px;
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.1);
}

.detail-tags span {
  color: #fed7aa;
  background: rgba(245, 158, 11, 0.14);
}

.player-section {
  margin: 26px 0;
}

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #020617;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

.video-shell video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #020617;
}

.play-layer {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  gap: 12px;
  border: 0;
  color: #fff;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.18), rgba(15, 23, 42, 0.74));
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.play-layer.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-icon {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 18px 45px rgba(245, 158, 11, 0.35);
  font-size: 30px;
}

.play-layer strong {
  font-size: clamp(20px, 3vw, 34px);
}

.detail-text {
  padding: clamp(20px, 4vw, 38px);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-soft);
}

.detail-text h2 {
  margin: 0 0 12px;
  font-size: 26px;
}

.detail-text p + h2 {
  margin-top: 26px;
}

.detail-text p {
  margin: 0;
  color: #334155;
  font-size: 17px;
}

.site-footer {
  margin-top: 60px;
  color: #cbd5e1;
  background: #0f172a;
}

.footer-inner {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-inner strong {
  color: #fff;
  font-size: 20px;
}

.footer-inner p {
  margin: 6px 0 0;
  color: #94a3b8;
}

.footer-inner nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-inner a {
  color: #e2e8f0;
}

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

@media (max-width: 1100px) {
  .hero-shell {
    grid-template-columns: 1fr;
  }

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

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

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

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

@media (max-width: 860px) {
  main,
  .header-inner,
  .mobile-nav,
  .footer-inner {
    width: min(100% - 24px, 1240px);
  }

  .desktop-nav {
    display: none;
  }

  .menu-button {
    display: block;
  }

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

  .hero-stage {
    min-height: 520px;
  }

  .hero-panel,
  .focus-list,
  .category-overview-grid,
  .rank-list,
  .detail-hero,
  .search-strip,
  .filter-bar {
    grid-template-columns: 1fr;
  }

  .detail-poster {
    max-width: 320px;
  }

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

  .category-card-wide {
    grid-template-columns: 120px 1fr;
  }

  .category-cover img {
    height: 170px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .header-inner {
    min-height: 66px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

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

  .brand-text em {
    display: none;
  }

  .hero-shell {
    padding-top: 18px;
  }

  .hero-stage {
    min-height: 500px;
    border-radius: 24px;
  }

  .hero-slide,
  .page-hero,
  .detail-hero {
    padding: 24px;
  }

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

  .hero-dots {
    left: 24px;
    bottom: 24px;
  }

  .focus-card {
    grid-template-columns: 82px 1fr;
  }

  .movie-grid,
  .small-grid {
    grid-template-columns: 1fr;
  }

  .category-card-wide {
    grid-template-columns: 1fr;
  }

  .category-cover img {
    height: 260px;
  }

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