html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
}

.site-header {
  backdrop-filter: blur(14px);
}

.brand-mark {
  display: inline-flex;
  width: 2rem;
  height: 2rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #0ea5e9, #2563eb);
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.25);
  font-size: 0.9rem;
}

.dropdown-panel {
  pointer-events: none;
}

.nav-dropdown:hover .dropdown-panel {
  pointer-events: auto;
}

.hero-section {
  isolation: isolate;
}

.hero-slider {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 3rem;
  align-items: center;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  pointer-events: none;
}

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

.hero-poster-card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 1.5rem;
  min-height: 420px;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.45);
  transform: rotate(2deg);
}

.hero-poster-card img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

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

.hero-poster-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(2, 6, 23, 0.82), transparent 58%);
}

.hero-poster-title {
  position: absolute;
  left: 1.25rem;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 1;
  color: #ffffff;
  font-weight: 700;
  font-size: 1.2rem;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 2rem;
  z-index: 20;
  display: flex;
  gap: 0.75rem;
  transform: translateX(-50%);
}

.hero-dot {
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.is-active {
  width: 2rem;
  background: #ffffff;
}

.hero-glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(10px);
  opacity: 0.42;
  z-index: 0;
}

.hero-glow-one {
  width: 20rem;
  height: 20rem;
  right: 15%;
  top: 10%;
  background: rgba(255, 255, 255, 0.24);
}

.hero-glow-two {
  width: 16rem;
  height: 16rem;
  left: 8%;
  bottom: 8%;
  background: rgba(14, 165, 233, 0.36);
}

.section-icon {
  display: inline-flex;
  width: 2rem;
  height: 2rem;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
}

.movie-card img {
  background: linear-gradient(135deg, #e0f2fe, #dbeafe);
}

.card-cover-horizontal {
  min-height: 12rem;
}

.category-icon {
  color: #0ea5e9;
}

.page-hero {
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: "";
  position: absolute;
  right: -8rem;
  top: -8rem;
  width: 24rem;
  height: 24rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.ranking-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  background: #020617;
}

.ranking-bg,
.detail-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
}

.ranking-bg::after,
.detail-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(2, 6, 23, 0.72), transparent 55%);
}

.poster-shell {
  border-radius: 1.5rem;
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #020617;
}

.movie-video {
  width: 100%;
  height: 100%;
  background: #020617;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: #ffffff;
  background: radial-gradient(circle at center, rgba(14, 165, 233, 0.28), rgba(2, 6, 23, 0.72));
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-circle {
  display: inline-flex;
  width: 5rem;
  height: 5rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #ffffff;
  color: #0284c7;
  font-size: 2rem;
  box-shadow: 0 18px 50px rgba(14, 165, 233, 0.35);
  padding-left: 0.2rem;
}

.play-title {
  font-weight: 700;
  font-size: 1.1rem;
}

.no-results:not(.hidden) {
  display: block;
}

.search-results:empty::before {
  content: "请输入关键词查找影片";
  display: block;
  grid-column: 1 / -1;
  padding: 2rem;
  border-radius: 1rem;
  color: #64748b;
  text-align: center;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

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

  .hero-poster-card {
    display: none;
  }
}

@media (max-width: 768px) {
  .hero-section {
    height: 620px;
  }

  .hero-copy h1 {
    font-size: 2.75rem;
  }

  .card-cover-horizontal {
    width: 9rem;
  }
}

.bg-slate-950 {
  background-color: #020617;
}

.bg-white\/10 {
  background-color: rgba(255, 255, 255, 0.1);
}

.bg-white\/15 {
  background-color: rgba(255, 255, 255, 0.15);
}

.border-gray-100 {
  border-color: #f3f4f6;
}

.border-white\/40 {
  border-color: rgba(255, 255, 255, 0.4);
}

.border-white\/60 {
  border-color: rgba(255, 255, 255, 0.6);
}

.from-black\/70 {
  --tw-gradient-from: rgb(0 0 0 / 0.7) var(--tw-gradient-from-position);
  --tw-gradient-to: rgb(0 0 0 / 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}

.bottom-4 {
  bottom: 1rem;
}

.left-4 {
  left: 1rem;
}

.right-4 {
  right: 1rem;
}

.gap-10 {
  gap: 2.5rem;
}

.h-9 {
  height: 2.25rem;
}

.w-9 {
  width: 2.25rem;
}

.w-44 {
  width: 11rem;
}

.w-52 {
  width: 13rem;
}

.items-end {
  align-items: flex-end;
}

.leading-8 {
  line-height: 2rem;
}

.mb-5 {
  margin-bottom: 1.25rem;
}

.mb-14 {
  margin-bottom: 3.5rem;
}

.mt-6 {
  margin-top: 1.5rem;
}

.p-5 {
  padding: 1.25rem;
}

.pb-4 {
  padding-bottom: 1rem;
}

.px-5 {
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.px-7 {
  padding-left: 1.75rem;
  padding-right: 1.75rem;
}

.py-3 {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.py-20 {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.space-y-8 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(2rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(2rem * var(--tw-space-y-reverse));
}

.text-blue-50 {
  color: #eff6ff;
}

.text-indigo-500 {
  color: #6366f1;
}

.text-right {
  text-align: right;
}

@media (min-width: 640px) {
  .sm\:w-48 {
    width: 12rem;
  }
}

@media (min-width: 768px) {
  .md\:grid-cols-\[1fr_auto\] {
    grid-template-columns: minmax(0, 1fr) auto;
  }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-5 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .lg\:grid-cols-\[320px_1fr\] {
    grid-template-columns: 320px minmax(0, 1fr);
  }

  .lg\:grid-cols-\[1fr_340px\] {
    grid-template-columns: minmax(0, 1fr) 340px;
  }
}

@media (min-width: 1280px) {
  .xl\:grid-cols-6 {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}
