@use '_variables' as *;
@use '_mixins' as *;
@use '_bootstrap-variables';
@use '_miniature' as *;

.playlist {
  position: relative;
  min-width: 200px;
  width: 25vw;
  max-width: 470px;
  height: 66vh;
  background-color: pvar(--mainBackgroundColor);
  overflow-y: auto;
  border-bottom: 1px solid $separator-border-color;

  .playlist-info {
    padding: 5px 30px;
    background-color: pvar(--greyBackgroundColor);
  }

  .playlist-display-name {
    font-size: 18px;
    font-weight: $font-semibold;
    margin-bottom: 5px;

    .pt-badge {
      @include margin-left(5px);
    }
  }

  .playlist-by-index {
    color: pvar(--greyForegroundColor);
    display: flex;

    .playlist-by {
      @include margin-right(5px);
    }

    .playlist-index span:first-child::after {
      content: '/';
      margin: 0 3px;
    }
  }

  .playlist-controls {
    display: flex;
    margin: 10px 0;

    button:not(.active) {
      opacity: .5;
    }
  }

  my-video-playlist-element-miniature {
    ::ng-deep {
      .video {
        .position {
          @include margin-right(0);
        }

        .video-info {
          .video-info-name {
            font-size: 15px;
          }
        }
      }

      my-video-thumbnail {
        @include thumbnail-size-component(90px, 50px);
      }

      .fake-thumbnail {
        width: 90px;
        height: 50px;
      }
    }
  }
}

