.sp-youtube-slider-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-family: Arial, sans-serif;
  background-color: var(--bs-gradient);
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.sp-youtube-main-video-area {
  flex: 2; /* Takes up more space than the sidebar */
  min-width: 300px;
}

.sp-youtube-video-player {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: 6px;
}

.sp-youtube-video-player iframe {
  position: absolute;
  inset: 0; /* Shorthand for top, right, bottom, left */
  width: 100%;
  height: 100%;
}

.sp-youtube-sidebar-list {
  flex: 1; /* Takes up less space */
  min-width: 250px;
  max-height: 500px; /* Limit the height */
  overflow-y: auto; /* Enable vertical scrolling */
  /* Using logical properties for padding and border */
  padding-inline-end: 10px; /* padding-right in LTR, padding-left in RTL */
  border-inline-start: 1px solid #ddd; /* border-left in LTR, border-right in RTL */
  padding-inline-start: 20px; /* padding-left in LTR, padding-right in RTL */
}

.sp-youtube-thumbnail-item {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  padding: 10px;
  border-radius: 6px;
}

.sp-youtube-thumbnail-item:hover {
  background-color: var(--bs-dark-bg-subtle);
}

.sp-youtube-thumbnail-item img {
  width: 120px;
  height: auto;
  object-fit: cover;
  border-radius: 4px;
}

.sp-youtube-video-details {
  display: flex;
  align-items: center;
}

.sp-youtube-video-title {
  font-size: 14px;
  font-weight: bold;
  /* color: #333; */
  color: var(--bs-dark-text-emphasis);
  line-height: 1.4;
}

/* Responsive design for smaller screens */
@media (max-width: 768px) {
  .sp-youtube-slider-container {
    flex-direction: column;
  }

  .sp-youtube-sidebar-list {
    max-height: none; /* No height limit on small screens */
    border-inline-start: none;
    padding-inline-start: 0;
  }
}
