/* Carousel header */
.carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.carousel-item {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%;
  height: auto;
  min-height: 10%;
  max-height: 40vh;
  overflow: hidden;
}

.carousel-item>img {
  width: 100%;
  height: 25%;
  max-height: 40vh;
  object-fit: cover;
}

.carousel-caption {
  position: absolute;
  top: auto;
  bottom: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 600px;
  text-align: center;
  background: rgba(0, 0, 0, 0.7);
  padding: 10px 15px;
  border-radius: 10px;
}

@media (max-width: 768px) {
  .carousel-item {
    max-height: 50vh;
  }

  .carousel-caption {
    bottom: 8%;
    width: 85%;
    font-size: 14px;
    padding: 8px;
  }
}

@media (max-width: 480px) {
  .carousel-item {
    max-height: 40vh;
    min-height: 150px;
  }

  .carousel-item>img {
    max-height: 100%;
  }

  .carousel-caption {
    bottom: 6%;
    width: 90%;
    font-size: 12px;
    padding: 6px;
  }
}

/* Carousel pages */
.carousel-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin: 0;
  border: none;
}

.carousel-items {
  display: flex;
  transition: transform 0.5s ease;
  will-change: transform;
  margin: 5px;
  background-color: var(--background-color);
  color: var(--text-color);
  transition: background-color 0.1s, color 0.1s;
}

.video-item {
  min-width: 20%;
  text-align: center;
  flex-shrink: 0;
  padding: 5px;
  margin: 5px;
  border-radius: 2px;
  box-shadow: var(--shadow-color);
  transition: transform 0.3s ease;
  background-color: var(--background-color);
  color: var(--text-color);
  transition: background-color 0.1s, color 0.1s;
}

.video-item:hover {
  transform: scale(1.05);
}

.video-item .home-artist .home-album .home-track {
  width: 50%;
  height: auto;
  object-fit: cover;
  border-radius: 2px;
}

.video-title {
  display: block;
  margin-top: 5px;
  max-width: 200px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.video-title-art {
  display: block;
  margin-top: 5px;
  max-width: 100px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.prev-btn,
.next-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.527);
  color: var(--text-color);
  border: none;
  padding: 10px;
  cursor: pointer;
  z-index: 10;
}

.prev-btn i,
.next-btn i {
  display: flex;
  align-items: center;
  font-size: 20px;
}

.prev-btn:hover,
.next-btn:hover {
  background-color: rgba(0, 0, 0, 0.527);
  color: red;
}

.prev-btn {
  left: 10px;
}

.next-btn {
  right: 10px;
}
