html {
  scroll-behavior: smooth;
}

body {
  color: #1f2937;
  background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 50%, #fff7ed 100%);
}

.site-shell {
  min-height: 100vh;
}

.logo-mark {
  display: inline-flex;
  width: 2.5rem;
  height: 2.5rem;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  color: white;
  font-weight: 900;
  letter-spacing: -0.08em;
  background: linear-gradient(135deg, #dc2626, #991b1b);
  box-shadow: 0 12px 30px rgba(220, 38, 38, 0.28);
}

.mobile-menu {
  display: none;
}

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

.hero-slider {
  min-height: 680px;
  background: #111827;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.02);
  transition: opacity 700ms ease, transform 900ms ease;
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-panel {
  position: relative;
  z-index: 5;
  min-height: 680px;
  display: flex;
  align-items: center;
}

.hero-thumb {
  border: 2px solid rgba(255, 255, 255, 0.2);
  opacity: 0.72;
}

.hero-thumb.is-active {
  border-color: #ef4444;
  opacity: 1;
}

.cover-box {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #fee2e2, #fef3c7);
}

.cover-wide {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, #fee2e2, #fef3c7);
}

.cover-square {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: linear-gradient(135deg, #fee2e2, #fef3c7);
}

.card-lift {
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.card-lift:hover {
  transform: translateY(-6px);
}

.badge-glow {
  box-shadow: 0 10px 24px rgba(220, 38, 38, 0.28);
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 1.5rem;
  background: #030712;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.32);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: white;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.15), rgba(0, 0, 0, 0.7));
  cursor: pointer;
  z-index: 4;
  border: 0;
}

.player-overlay[hidden] {
  display: none;
}

.play-circle {
  display: inline-flex;
  width: 5rem;
  height: 5rem;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  box-shadow: 0 18px 40px rgba(220, 38, 38, 0.4);
}

.movie-card[hidden] {
  display: none;
}

.rank-number {
  min-width: 2.75rem;
  height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  color: white;
  font-weight: 900;
  background: linear-gradient(135deg, #dc2626, #f97316);
}

.search-result-list:empty::after {
  content: "请输入关键词搜索影片";
  display: block;
  padding: 2rem;
  text-align: center;
  color: #6b7280;
  background: white;
  border-radius: 1rem;
}

@media (max-width: 767px) {
  .hero-slider,
  .hero-panel {
    min-height: 620px;
  }

  .hero-panel {
    padding-top: 2rem;
    align-items: flex-end;
  }
}
