.series-scroller-container {
  border-radius: 20px;
  padding: 1rem 2rem 0;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(20px);
  border: color-mix(in srgb, var(--p-surface-500), transparent 50%) 1px solid;
}

.series-scroller-title {
  text-align: left;
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  padding: 0;
  background: linear-gradient(135deg, #ffffff, #e2e8f0, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  z-index: 2;
  letter-spacing: -0.02em;

  &::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-color));
    border-radius: 2px;
  }
}

.series-scroller-empty {
  padding: 3rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;

  .empty-state-icon {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;

    i {
      font-size: 2rem;
      color: white;
      filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    }
  }

  p {
    color: #e2e8f0;
    font-size: 1rem;
    font-weight: 500;
    max-width: 400px;
    line-height: 1.7;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  }
}

.series-scroller-track {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  padding: 1rem 0.5rem 1rem;
  gap: 1.25rem;
  width: 100%;
  position: relative;
  z-index: 2;

  scrollbar-color: var(--primary-color) rgba(20, 20, 30, 0.5);

  > * {
    scroll-snap-align: start;
  }
}

@media (max-width: 767px) {
  .series-scroller-container {
    padding: 1rem 1rem 0;
  }

  .series-scroller-track {
    gap: 1rem;
  }
}
