:root {
  color-scheme: dark;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 0%, rgba(147, 51, 234, 0.20), transparent 32rem),
    radial-gradient(circle at 85% 10%, rgba(65, 105, 179, 0.16), transparent 28rem),
    #0f1419;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(82, 96, 109, 0.35);
  background: rgba(15, 20, 25, 0.92);
  backdrop-filter: blur(18px);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #9333ea, #4169b3);
  box-shadow: 0 18px 40px rgba(147, 51, 234, 0.25);
}

.brand-text {
  letter-spacing: 0.02em;
}

.search-box {
  position: relative;
}

.search-results {
  position: absolute;
  top: calc(100% + 0.75rem);
  right: 0;
  width: min(30rem, calc(100vw - 2rem));
  overflow: hidden;
  border: 1px solid rgba(82, 96, 109, 0.45);
  border-radius: 1rem;
  background: rgba(15, 20, 25, 0.98);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
  display: none;
}

.search-results.is-open {
  display: block;
}

.search-result-item {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem;
  border-bottom: 1px solid rgba(82, 96, 109, 0.25);
}

.search-result-item:last-child {
  border-bottom: 0;
}

.search-result-item:hover {
  background: rgba(147, 51, 234, 0.12);
}

.search-result-cover {
  width: 3rem;
  height: 4rem;
  border-radius: 0.65rem;
  object-fit: cover;
  background: #1f2933;
  flex: 0 0 auto;
}

.mobile-panel {
  display: none;
  padding-bottom: 1rem;
}

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

.hero-slide {
  pointer-events: none;
}

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

.hero-action {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 999px;
  padding: 0.85rem 1.2rem;
  background: linear-gradient(135deg, #9333ea, #4169b3);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 18px 42px rgba(147, 51, 234, 0.32);
}

.hero-action:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.section-heading-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  background: rgba(147, 51, 234, 0.16);
  color: #d8b4fe;
  font-size: 0.875rem;
}

.movie-card {
  position: relative;
  height: 100%;
  overflow: hidden;
  border: 1px solid rgba(82, 96, 109, 0.24);
  border-radius: 1rem;
  background: rgba(31, 41, 51, 0.84);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.18);
  transition: transform 260ms ease, border-color 260ms ease, box-shadow 260ms ease;
}

.movie-card:hover {
  transform: translateY(-0.25rem);
  border-color: rgba(168, 85, 247, 0.55);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.movie-card img {
  transition: transform 420ms ease, filter 420ms ease;
}

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

.movie-tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.22rem 0.55rem;
  background: rgba(147, 51, 234, 0.82);
  color: white;
  font-size: 0.75rem;
  white-space: nowrap;
}

.category-card {
  display: block;
  min-height: 11rem;
  border: 1px solid rgba(82, 96, 109, 0.28);
  border-radius: 1.25rem;
  padding: 1.25rem;
  background:
    linear-gradient(135deg, rgba(147, 51, 234, 0.16), rgba(65, 105, 179, 0.10)),
    rgba(31, 41, 51, 0.72);
  transition: transform 260ms ease, border-color 260ms ease, background 260ms ease;
}

.category-card:hover {
  transform: translateY(-0.25rem);
  border-color: rgba(168, 85, 247, 0.58);
  background:
    linear-gradient(135deg, rgba(147, 51, 234, 0.26), rgba(65, 105, 179, 0.18)),
    rgba(31, 41, 51, 0.92);
}

.ranking-item {
  display: grid;
  grid-template-columns: auto 5rem minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  border: 1px solid rgba(82, 96, 109, 0.25);
  border-radius: 1rem;
  padding: 0.75rem;
  background: rgba(31, 41, 51, 0.72);
  transition: border-color 220ms ease, background 220ms ease, transform 220ms ease;
}

.ranking-item:hover {
  transform: translateX(0.25rem);
  border-color: rgba(168, 85, 247, 0.54);
  background: rgba(31, 41, 51, 0.92);
}

.rank-number {
  width: 2.5rem;
  text-align: center;
  font-size: 1.3rem;
  font-weight: 800;
  color: #a855f7;
}

.filter-panel {
  border: 1px solid rgba(82, 96, 109, 0.28);
  border-radius: 1.25rem;
  padding: 1rem;
  background: rgba(31, 41, 51, 0.72);
}

.field-control {
  width: 100%;
  border: 1px solid rgba(82, 96, 109, 0.65);
  border-radius: 0.85rem;
  background: rgba(15, 20, 25, 0.74);
  color: white;
  padding: 0.75rem 0.9rem;
  outline: none;
}

.field-control:focus {
  border-color: #9333ea;
  box-shadow: 0 0 0 3px rgba(147, 51, 234, 0.22);
}

.player-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(82, 96, 109, 0.35);
  border-radius: 1.5rem;
  background: #05070a;
  box-shadow: 0 28px 85px rgba(0, 0, 0, 0.45);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, rgba(147, 51, 234, 0.12), rgba(5, 7, 10, 0.58));
  cursor: pointer;
  transition: opacity 220ms ease, visibility 220ms ease;
  z-index: 3;
}

.player-shell.is-playing .player-overlay {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-button-core {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 999px;
  background: rgba(147, 51, 234, 0.92);
  color: white;
  box-shadow: 0 22px 60px rgba(147, 51, 234, 0.38);
  transition: transform 200ms ease, filter 200ms ease;
}

.player-overlay:hover .play-button-core {
  transform: scale(1.06);
  filter: brightness(1.08);
}

.content-panel {
  border: 1px solid rgba(82, 96, 109, 0.25);
  border-radius: 1.25rem;
  background: rgba(31, 41, 51, 0.66);
  padding: 1.25rem;
}

.prose-lite p {
  margin-top: 0.85rem;
  color: #cbd5e1;
  line-height: 1.9;
}

.breadcrumb a:hover {
  color: #d8b4fe;
}

.hide-card {
  display: none !important;
}

.footer-link:hover {
  color: #d8b4fe;
}

@media (max-width: 767px) {
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .ranking-item {
    grid-template-columns: auto 4.5rem minmax(0, 1fr);
    gap: 0.75rem;
  }

  .play-button-core {
    width: 4.25rem;
    height: 4.25rem;
  }
}
