/* Movie Rows */
.movie-rows {
  padding: 0 4rem 4rem;
  margin-top: -6rem;
  position: relative;
  z-index: 3;
  overflow-x: hidden;
}

.movie-rows.movie-rows--year-archive {
  margin-top: 0;
  padding-top: 1.25rem;
}

.movie-row {
  margin-bottom: 1.25rem;
  overflow-x: hidden;
}

.row-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin: 0 0 1rem 0;
  color: #e5e5e5;
  white-space: nowrap;
}

.row-container {
  position: relative;
  overflow: hidden;
}

.row-scroll-btn {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 48px;
  background: linear-gradient(to right, transparent, rgba(10,10,10,0.85) 40%);
  border: none;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 4px;
  z-index: 5;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.movie-row:hover .row-scroll-btn {
  opacity: 1;
  pointer-events: auto;
}

.movie-row:focus-within .row-scroll-btn {
  opacity: 1;
  pointer-events: auto;
}

.row-scroll-btn:hover {
  color: var(--sport-accent);
}

.row-content {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 0.5rem 0 0.5rem 8px;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

.row-content::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.year-row-skeleton {
  pointer-events: none;
}

.skeleton-title,
.skeleton-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.08) 25%, rgba(255, 255, 255, 0.16) 50%, rgba(255, 255, 255, 0.08) 75%);
  background-size: 200% 100%;
  animation: year-row-shimmer 1.4s ease-in-out infinite;
}

.skeleton-title {
  width: 180px;
  height: 1.75rem;
  margin-bottom: 1rem;
  border-radius: 4px;
}

.skeleton-card {
  min-width: 250px;
  width: 250px;
  height: 140px;
  border-radius: 4px;
}

@keyframes year-row-shimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

/* Movie Card */
.movie-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.movie-card {
  position: relative;
  min-width: 250px;
  width: 250px;
  height: 140px;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  background-color: var(--netflix-gray);
}

.movie-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.3s ease;
}

.movie-card:hover {
  transform: scale(1.05);
  z-index: 10;
}

.movie-card:hover img {
  filter: brightness(0.7);
}

.movie-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.15), transparent);
  padding: 1rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
}

.movie-card:hover .movie-card-overlay {
  opacity: 1;
}

.movie-card-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.25rem 0;
  color: var(--netflix-white);
}

.movie-card-info {
  font-size: 0.85rem;
  color: var(--netflix-light-gray);
  margin: 0;
}

.movie-card-no-image {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--netflix-gray) 0%, var(--netflix-dark-gray) 100%);
  color: var(--netflix-light-gray);
  font-size: 0.9rem;
  text-align: center;
  padding: 1rem;
}

