html {
  background: #020617;
}

body {
  min-width: 320px;
}

.site-header {
  border-bottom: 1px solid rgba(51, 65, 85, 0.65);
}

.logo-mark {
  display: inline-flex;
  width: 2rem;
  height: 2rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.12);
  font-size: 1rem;
  line-height: 1;
}

.site-mini-search,
.site-mobile-search {
  align-items: center;
  gap: 0.5rem;
}

.site-mini-search {
  display: none;
}

.site-mobile-search {
  display: flex;
  padding: 0.5rem 1rem 0;
}

@media (min-width: 768px) {
  .site-mini-search {
    display: flex;
  }
}

.site-mini-search-input,
.filter-input,
.filter-sort,
.home-search-input {
  width: 100%;
  border: 1px solid rgba(71, 85, 105, 0.8);
  border-radius: 0.75rem;
  background: rgba(15, 23, 42, 0.92);
  color: #ffffff;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-mini-search-input {
  width: 14rem;
  padding: 0.6rem 0.9rem;
  font-size: 0.875rem;
}

.site-mini-search-input:focus,
.filter-input:focus,
.filter-sort:focus,
.home-search-input:focus {
  border-color: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.16);
}

.site-mini-search-button,
.home-search-button {
  flex: 0 0 auto;
  border-radius: 0.75rem;
  background: #f59e0b;
  color: #ffffff;
  font-weight: 700;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.site-mini-search-button {
  padding: 0.6rem 1rem;
  font-size: 0.875rem;
}

.site-mini-search-button:hover,
.home-search-button:hover {
  background: #d97706;
  transform: translateY(-1px);
}

.site-mobile-nav {
  display: none;
}

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

.hero-carousel {
  background: radial-gradient(circle at 20% 10%, rgba(245, 158, 11, 0.22), transparent 26%), #020617;
}

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

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

.hero-copy {
  text-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.65);
}

.hero-arrow {
  font-size: 2.5rem;
  line-height: 1;
}

.hero-dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  transition: width 0.2s ease, background-color 0.2s ease;
}

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

.poster-shell {
  background: linear-gradient(135deg, #0f172a, #1e293b 48%, #92400e);
}

.poster-shell img {
  transition: opacity 0.2s ease, transform 0.3s ease;
}

.play-symbol {
  color: #ffffff;
  padding-left: 0.18rem;
  font-size: 1.6rem;
  line-height: 1;
}

.category-pill {
  min-height: 7rem;
  border: 1px solid rgba(71, 85, 105, 0.48);
}

.category-overview-card {
  border: 1px solid rgba(51, 65, 85, 0.55);
}

.home-search-panel {
  border: 1px solid rgba(51, 65, 85, 0.55);
  background-image: radial-gradient(circle at top right, rgba(245, 158, 11, 0.12), transparent 30%);
}

.home-search {
  display: flex;
  gap: 0.75rem;
  max-width: 56rem;
}

.home-search-input {
  padding: 0.9rem 1rem;
}

.home-search-button {
  padding: 0.9rem 1.35rem;
}

.filter-panel {
  border: 1px solid rgba(51, 65, 85, 0.55);
}

.filter-field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  color: #9ca3af;
  font-size: 0.875rem;
}

.filter-input,
.filter-sort {
  padding: 0.75rem 0.9rem;
}

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

.video-stage {
  border: 1px solid rgba(51, 65, 85, 0.75);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}

.player-mask {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.28), rgba(2, 6, 23, 0.82));
  color: #ffffff;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  z-index: 3;
}

.player-mask-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.player-play-icon {
  display: inline-flex;
  width: 5rem;
  height: 5rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #f59e0b;
  font-size: 2.5rem;
  line-height: 1;
  padding-left: 0.25rem;
  box-shadow: 0 18px 42px rgba(245, 158, 11, 0.26);
}

.player-play-text {
  font-weight: 700;
  letter-spacing: 0.08em;
}

.player-status {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 4;
  text-align: center;
  color: #fca5a5;
  font-size: 0.875rem;
  pointer-events: none;
}

.detail-meta span {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.85rem;
  border-radius: 0.85rem;
  background: rgba(15, 23, 42, 0.78);
}

.detail-meta strong {
  color: #f59e0b;
  font-size: 0.75rem;
}

.related-row {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  gap: 0.85rem;
  align-items: center;
  color: #d1d5db;
  transition: color 0.2s ease, transform 0.2s ease;
}

.related-row:hover {
  color: #f59e0b;
  transform: translateX(2px);
}

.related-row img {
  width: 5.5rem;
  height: 4rem;
  object-fit: cover;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, #0f172a, #1e293b);
}

.related-row strong,
.related-row em {
  display: block;
}

.related-row strong {
  font-weight: 700;
  color: inherit;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.related-row em {
  margin-top: 0.25rem;
  color: #9ca3af;
  font-size: 0.8rem;
  font-style: normal;
  line-height: 1.35;
}

@media (max-width: 767px) {
  .site-mini-search-input {
    width: 100%;
  }

  .home-search {
    flex-direction: column;
  }

  .hero-arrow {
    display: none;
  }

  .hero-copy h2 {
    font-size: 2.15rem;
  }
}
