html {
  scroll-behavior: smooth;
}

body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  background: #f8fafc;
  color: #0f172a;
}

img {
  display: block;
}

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

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

.mobile-nav {
  display: none;
}

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

.hero-slider {
  background: #020617;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 700ms ease;
}

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

.hero-slide img {
  transform: scale(1.02);
}

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

.hero-dot {
  width: 1rem;
  height: 0.25rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.5);
  transition: all 260ms ease;
}

.aspect-poster {
  aspect-ratio: 2 / 3;
}

.aspect-wide {
  aspect-ratio: 16 / 9;
}

.movie-card {
  transform: translateY(0);
}

.movie-card:hover {
  transform: translateY(-4px);
}

.movie-card img {
  transition: transform 500ms ease;
}

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

.shadow-card {
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

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

.line-clamp-1 {
  -webkit-line-clamp: 1;
}

.line-clamp-2 {
  -webkit-line-clamp: 2;
}

.line-clamp-3 {
  -webkit-line-clamp: 3;
}

.player-shell {
  position: relative;
  background: #000000;
}

.player-shell video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.player-cover {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  cursor: pointer;
  color: #ffffff;
  background: #000000;
}

.player-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.65;
}

.player-cover span {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(37, 99, 235, 0.92);
  font-size: 1.65rem;
  box-shadow: 0 18px 45px rgba(37, 99, 235, 0.45);
}

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

.ranking-number {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb, #16a34a);
  font-weight: 800;
}

.filter-hidden {
  display: none !important;
}

.search-empty {
  display: none;
}

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

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

  .player-cover span {
    width: 3.75rem;
    height: 3.75rem;
  }
}
