:root {
  --bg: #fff8ed;
  --surface: #ffffff;
  --surface-soft: #fff3dd;
  --text: #1f2937;
  --muted: #6b7280;
  --line: rgba(251, 146, 60, 0.25);
  --brand: #f97316;
  --brand-dark: #c2410c;
  --brand-soft: #fed7aa;
  --gold: #f59e0b;
  --shadow: 0 20px 45px rgba(154, 79, 12, 0.14);
}

* {
  box-sizing: border-box;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 247, 237, 0.92);
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px rgba(251, 146, 60, 0.12);
}

.nav-shell,
.footer-shell,
.section,
.hero-inner,
.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--gold));
  box-shadow: 0 10px 24px rgba(249, 115, 22, 0.32);
}

.brand-text {
  font-size: 1.25rem;
}

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

.nav-link {
  padding: 10px 16px;
  border-radius: 999px;
  color: #4b5563;
  font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--brand-dark);
  background: var(--brand-soft);
  transform: translateY(-1px);
}

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: var(--surface-soft);
  cursor: pointer;
}

.mobile-menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--brand-dark);
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 10px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

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

.hero {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  background: radial-gradient(circle at top left, rgba(251, 146, 60, 0.35), transparent 35%), linear-gradient(135deg, #fff7ed 0%, #fffbeb 45%, #fef3c7 100%);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(54px);
  opacity: 0.42;
}

.hero::before {
  width: 240px;
  height: 240px;
  left: 8%;
  top: 54px;
  background: var(--brand);
}

.hero::after {
  width: 320px;
  height: 320px;
  right: 7%;
  bottom: 18px;
  background: var(--gold);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  align-items: center;
  gap: 42px;
  min-height: 560px;
  padding: 52px 0;
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--brand-dark);
  background: rgba(254, 215, 170, 0.78);
  font-weight: 800;
}

.hero h1,
.page-hero h1,
.detail-title {
  margin: 0;
  color: #111827;
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.gradient-text {
  color: transparent;
  background: linear-gradient(90deg, var(--brand), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-copy p,
.page-hero p,
.detail-lead {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.8;
}

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

.button-primary,
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 0;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--gold));
  box-shadow: 0 16px 30px rgba(249, 115, 22, 0.32);
}

.button-secondary {
  color: #374151;
  background: #ffffff;
  box-shadow: 0 14px 28px rgba(154, 79, 12, 0.12);
}

.button-primary:hover,
.button-secondary:hover {
  transform: translateY(-2px);
}

.hero-carousel {
  position: relative;
  min-height: 420px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 44% 56%;
  gap: 22px;
  align-items: stretch;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateX(18px) scale(0.98);
  transition: opacity 0.45s ease, transform 0.45s ease;
  pointer-events: none;
}

.hero-slide.is-active {
  opacity: 1;
  transform: translateX(0) scale(1);
  pointer-events: auto;
}

.hero-poster {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #fde68a;
}

.hero-poster img,
.poster-link img,
.detail-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-poster::after,
.poster-link::after,
.detail-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.5));
  pointer-events: none;
}

.hero-slide-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 18px 12px;
}

.hero-slide-content h2 {
  margin: 0 0 12px;
  font-size: clamp(1.7rem, 3vw, 2.7rem);
  line-height: 1.12;
}

.hero-slide-content p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.8;
}

.hero-meta,
.detail-meta,
.movie-tags,
.info-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-meta span,
.detail-meta span,
.movie-tags span,
.info-list span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--brand-dark);
  background: #ffedd5;
  font-size: 0.82rem;
  font-weight: 800;
}

.info-list a {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--brand-dark);
  background: #ffedd5;
  font-size: 0.82rem;
  font-weight: 800;
}

.hero-dots {
  position: absolute;
  right: 30px;
  bottom: 26px;
  display: flex;
  gap: 8px;
  z-index: 2;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: #fdba74;
  cursor: pointer;
}

.hero-dot.is-active {
  width: 26px;
  background: var(--brand);
}

.section {
  padding: 62px 0;
}

.section.alt {
  background: linear-gradient(180deg, rgba(255, 247, 237, 0.65), rgba(255, 255, 255, 0));
}

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.65rem, 3vw, 2.55rem);
}

.section-heading p {
  margin: 8px 0 0;
  color: var(--muted);
}

.section-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--brand-dark);
  font-weight: 900;
}

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

.category-chip,
.stat-card {
  display: flex;
  min-height: 128px;
  flex-direction: column;
  justify-content: center;
  padding: 22px;
  border-radius: 24px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--gold));
  box-shadow: 0 18px 35px rgba(249, 115, 22, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-chip:nth-child(2n),
.stat-card:nth-child(2n) {
  background: linear-gradient(135deg, #fb923c, #facc15);
}

.category-chip:nth-child(3n),
.stat-card:nth-child(3n) {
  background: linear-gradient(135deg, #f97316, #ef4444);
}

.category-chip:hover,
.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 44px rgba(249, 115, 22, 0.3);
}

.category-chip span,
.stat-card strong {
  font-size: 1.22rem;
  font-weight: 900;
}

.category-chip small,
.stat-card span {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.6;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(251, 146, 60, 0.18);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: 0 14px 34px rgba(154, 79, 12, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

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

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #fde68a;
}

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

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

.movie-year {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  padding: 5px 10px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--brand);
  font-size: 0.8rem;
  font-weight: 900;
}

.play-hover {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(249, 115, 22, 0.92);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.88);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.movie-card:hover .play-hover {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

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

.movie-card h3 {
  margin: 10px 0 8px;
  font-size: 1.08rem;
  line-height: 1.35;
}

.movie-card h3 a:hover {
  color: var(--brand-dark);
}

.movie-card p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

.movie-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #6b7280;
  font-size: 0.85rem;
}

.search-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  margin: 0 0 28px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 12px 28px rgba(154, 79, 12, 0.08);
}

.search-panel input {
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 16px;
  padding: 0 18px;
  color: var(--text);
  background: #fff7ed;
  outline: none;
  font-size: 1rem;
}

.search-panel button {
  min-width: 118px;
}

.page-hero {
  padding: 58px 0 36px;
  background: radial-gradient(circle at top right, rgba(251, 146, 60, 0.22), transparent 38%);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.92rem;
}

.breadcrumbs a {
  color: var(--brand-dark);
  font-weight: 800;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 64px 148px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 16px;
  border: 1px solid rgba(251, 146, 60, 0.18);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(154, 79, 12, 0.08);
}

.rank-number {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--gold));
  font-size: 1.05rem;
  font-weight: 900;
}

.rank-cover {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: 18px;
  background: #fde68a;
}

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

.rank-info h3 {
  margin: 0 0 8px;
  font-size: 1.18rem;
}

.rank-info p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.detail-hero {
  padding: 44px 0 36px;
}

.detail-layout {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 34px;
  align-items: center;
}

.detail-poster {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border-radius: 32px;
  background: #fde68a;
  box-shadow: var(--shadow);
}

.detail-title {
  font-size: clamp(2rem, 4vw, 3.55rem);
}

.detail-meta {
  margin: 20px 0 0;
}

.player-section {
  padding: 26px 0 64px;
}

.movie-player {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  background: #111827;
  box-shadow: 0 30px 70px rgba(17, 24, 39, 0.28);
}

.movie-player video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #111827;
  cursor: pointer;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.15), rgba(17, 24, 39, 0.55));
  cursor: pointer;
}

.play-overlay span {
  display: grid;
  width: 86px;
  height: 86px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--gold));
  box-shadow: 0 18px 45px rgba(249, 115, 22, 0.35);
  font-size: 2.2rem;
  transform: scale(1);
  transition: transform 0.2s ease;
}

.play-overlay:hover span {
  transform: scale(1.08);
}

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

.content-card {
  margin-top: 28px;
  padding: 28px;
  border: 1px solid rgba(251, 146, 60, 0.18);
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(154, 79, 12, 0.08);
}

.content-card h2 {
  margin: 0 0 14px;
  font-size: 1.55rem;
}

.content-card p {
  margin: 0;
  color: #4b5563;
  font-size: 1rem;
  line-height: 1.9;
}

.site-footer {
  color: #d1d5db;
  background: linear-gradient(180deg, #1f2937, #111827);
}

.footer-shell {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 26px;
  padding: 40px 0 24px;
}

.footer-brand {
  color: #ffffff;
  font-size: 1.25rem;
}

.footer-shell p {
  margin: 10px 0 0;
  color: #9ca3af;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

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

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #9ca3af;
  font-size: 0.9rem;
}

.empty-state {
  display: none;
  padding: 22px;
  border-radius: 20px;
  color: var(--muted);
  background: #fff7ed;
}

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

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

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

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

  .hero-carousel {
    min-height: 390px;
  }
}

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

  .mobile-menu-button {
    display: block;
  }

  .brand-text {
    font-size: 1.08rem;
  }

  .hero-inner {
    gap: 28px;
    padding: 34px 0;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    min-height: 560px;
  }

  .hero-carousel {
    min-height: 560px;
  }

  .hero-poster {
    min-height: 260px;
  }

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

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

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

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

  .rank-cover,
  .rank-action {
    display: none;
  }

  .detail-layout {
    gap: 22px;
  }

  .detail-poster {
    width: min(320px, 100%);
  }

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

@media (max-width: 480px) {
  .nav-shell,
  .footer-shell,
  .section,
  .hero-inner,
  .page-shell,
  .footer-bottom {
    width: min(100% - 22px, 1180px);
  }

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

  .hero h1,
  .page-hero h1,
  .detail-title {
    font-size: 2.05rem;
  }
}
