html {
  scroll-behavior: smooth;
}

body {
  background: #020617;
}

.site-mark {
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  color: #fff;
  font-size: 0.8rem;
  box-shadow: 0 12px 30px rgba(245, 158, 11, 0.3);
}

.section-icon {
  width: 2.25rem;
  height: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.1);
  font-size: 1.25rem;
}

.mobile-panel {
  display: none;
}

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

.hero-slider {
  position: relative;
  height: 400px;
  overflow: hidden;
}

@media (min-width: 640px) {
  .hero-slider {
    height: 500px;
  }
}

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

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

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

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, #020617 0%, rgba(2, 6, 23, 0.78) 44%, rgba(2, 6, 23, 0.18) 100%);
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding-bottom: 3rem;
}

.hero-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-control:hover {
  background: rgba(0, 0, 0, 0.75);
  transform: translateY(-50%) scale(1.05);
}

.hero-prev {
  left: 1rem;
}

.hero-next {
  right: 1rem;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
}

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

.hero-dot.is-active {
  width: 1.8rem;
  background: #f59e0b;
}

.poster-box {
  position: relative;
}

.poster-fallback {
  display: none;
}

.poster-box.is-empty img {
  display: none;
}

.poster-box.is-empty .poster-fallback {
  display: flex;
}

.play-sign,
.fallback-play {
  color: #fff;
  line-height: 1;
}

.tag-chip,
.category-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  background: rgba(51, 65, 85, 0.82);
  color: #cbd5e1;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.tag-chip:hover,
.category-chip:hover {
  background: #f59e0b;
  color: #fff;
  transform: translateY(-1px);
}

.filter-panel {
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(15, 23, 42, 0.86);
  border-radius: 1rem;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.18);
}

.filter-input,
.filter-select {
  width: 100%;
  border-radius: 0.75rem;
  background: rgba(51, 65, 85, 0.72);
  color: #fff;
  padding: 0.75rem 0.9rem;
  outline: none;
}

.filter-input:focus,
.filter-select:focus {
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.45);
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  background: #0f172a;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.3);
}

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

.player-cover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: radial-gradient(circle at center, rgba(245, 158, 11, 0.16), rgba(2, 6, 23, 0.68));
}

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

.player-button {
  width: 5rem;
  height: 5rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  box-shadow: 0 18px 50px rgba(245, 158, 11, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.player-button:hover {
  transform: scale(1.06);
  box-shadow: 0 22px 60px rgba(245, 158, 11, 0.45);
}

.detail-hero {
  background: radial-gradient(circle at top left, rgba(245, 158, 11, 0.18), transparent 34%), linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(2, 6, 23, 0.98));
}

.ranking-badge {
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  color: #fff;
  box-shadow: 0 10px 28px rgba(245, 158, 11, 0.25);
}

.pagination a,
.pagination span {
  display: inline-flex;
  min-width: 2.4rem;
  height: 2.4rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.7rem;
  background: rgba(51, 65, 85, 0.78);
  color: #cbd5e1;
  padding: 0 0.75rem;
}

.pagination a:hover,
.pagination .is-current {
  background: #f59e0b;
  color: #fff;
}

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