:root {
  --site-amber: #f59e0b;
  --site-orange: #f97316;
  --site-dark: #111827;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav-scroll {
  scrollbar-width: none;
}

.nav-scroll::-webkit-scrollbar {
  display: none;
}

.mobile-menu[hidden] {
  display: none;
}

.hero-carousel {
  min-height: 560px;
}

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

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

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

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

.hero-prev,
.hero-next {
  width: 3rem;
  height: 3rem;
  font-size: 2rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.movie-card,
.movie-card-list,
.movie-card-featured,
.compact-card,
.category-tile,
.category-overview-card {
  text-decoration: none;
}

.poster-ratio {
  background: linear-gradient(135deg, #fef3c7, #fed7aa 48%, #111827 100%);
}

.poster-ratio img.is-missing,
.player-cover img.is-missing,
.hero-slide img.is-missing {
  opacity: 0;
}

.movie-card img,
.movie-card-list img,
.movie-card-featured img,
.category-tile img,
.category-overview-card img,
.compact-card img {
  display: block;
}

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

.compact-card {
  border-radius: 0.75rem;
}

.rank-badge {
  position: absolute;
  left: 0.25rem;
  top: 0.25rem;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--site-amber), var(--site-orange));
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
}

.category-samples {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.category-samples span {
  font-size: 0.75rem;
  color: #6b7280;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 999px;
  padding: 0.25rem 0.65rem;
}

.search-input,
.search-select {
  width: 100%;
  border: 1px solid #fed7aa;
  border-radius: 0.9rem;
  padding: 0.85rem 1rem;
  outline: none;
  color: #374151;
  background: #ffffff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-input:focus,
.search-select:focus {
  border-color: var(--site-amber);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.18);
}

.search-panel {
  position: sticky;
  top: 6rem;
  z-index: 20;
}

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

.player-shell video {
  display: block;
  width: 100%;
  height: 100%;
  background: #000000;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  z-index: 3;
}

.player-dim {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.42);
}

.player-start {
  position: relative;
  z-index: 4;
  width: 5rem;
  height: 5rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--site-amber), var(--site-orange));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45);
  transition: transform 0.2s ease, filter 0.2s ease;
}

.player-start:hover {
  transform: scale(1.06);
  filter: brightness(1.05);
}

.player-start span {
  display: block;
  width: 0;
  height: 0;
  border-top: 1rem solid transparent;
  border-bottom: 1rem solid transparent;
  border-left: 1.55rem solid #ffffff;
  margin-left: 0.25rem;
}

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

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

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

.site-footer a {
  text-decoration: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 768px) {
  .hero-carousel {
    min-height: 540px;
  }

  .hero-prev,
  .hero-next {
    width: 2.5rem;
    height: 2.5rem;
  }

  .search-panel {
    position: static;
  }

  .movie-card-list {
    flex-direction: column;
  }

  .movie-card-list .w-48 {
    width: 100%;
    height: 12rem;
  }
}
