.radio-player-playlist {
  --playlist-height: 320px;
  display: flex;
  flex-flow: column;
  width: 100%;
  margin-top: 15px;

  * {
    box-sizing: border-box;
  }

  &__header {
    text-align: center;
    position: relative;
    margin: 10px auto;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;

    h3 {
      margin: 0;
      color: var(--radio-player-text-color);
      font-size: 16px;
      font-weight: normal;
    }

    .radio-player-play-list-close {
      margin-left: 7px;
      cursor: pointer;
      color: var(--radio-player-text-color);
      opacity: .5;

      &:hover {
        opacity: 1;
      }
    }

  }

  &__body {
    display: flex;
    flex-flow: column;
    width: 100%;
  }

  .playlist-item {
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(#ddd, .3);
    padding: 5px;
    color: var(--radio-player-text-color) !important;
    cursor: pointer;
    margin-bottom: 3px;
    font-size: 15px;

    &.active {
      background: var(--radio-player-primary-color) !important;
    }

    &:last-child {
      margin-bottom: 0;
      border-bottom: none;
    }

    img {
      width: 30px;
      margin-right: 10px;
      object-fit: cover;
      aspect-ratio: 1;
      border-radius: 3px;
    }

    .playlist-item-title {
      flex: 1;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      text-align: left;
    }

    button {
      margin-left: auto;
      background: transparent;
      border: 0;
      outline: none;
      cursor: pointer;
      color: var(--radio-player-text-color) !important;
      line-height: 0;

      &:hover, &.active {
        background: var(--radio-player-primary-color) !important;
      }

      svg {
        width: 26px;
        height: 26px;
      }

    }

    &.history-item {
      cursor: default;

      .item-time {
        margin-right: 10px;
      }

    }

  }

  .loading-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;

    svg {
      color: #007CCA;
      width: 2rem;
      height: 2rem;
    }
  }

  &__empty {
    text-align: center;
    color: var(--radio-player-text-color);
  }

  &.scrollable {

    .radio-player-playlist__body {
      max-height: var(--playlist-height);
      overflow-y: auto;

      &::-webkit-scrollbar {
        width: 5px;
        border-radius: 10px;
      }

      &::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 10px;
      }

      &::-webkit-scrollbar-thumb {
        background: rgba(#90A4AE, .3);
        border-radius: 10px;
      }

      &::-webkit-scrollbar-thumb:hover {
        background: rgba(#90A4AE, .5);
      }
    }
  }

}