@import '../../../../styles/_utils';

div.dialog-content {
  margin: 2em auto;
  .artist-results {
      text-align: left;
      vertical-align: middle;
      /* line-height: 0em; */
      
  }
  div.artist-results, div.album-results {
    display: inline-block;
    vertical-align: top;
  }
  span.result-header {
    padding-bottom: 4px;
    padding-left: 50px;
    margin: 12px 4px 12px 4px;
    display: block;
    font-size: 16px;
  }
}

.pt-dialog {
  width: 1000px;

  div.pt-input-group.main-search-input {
    width: 600px !important;
    margin: 1em auto !important;
  }
}
div.ds-artist-view {
  .artist-image {
    height: 128px;
  }
  .image-container {
    float: left;
    margin-right: 1em;
  }

  .artist-description {
      margin: 0 1em;
  }

  .artist-bio {
      margin-top: 0.5em;
      font-size: 0.92em;
  }

  .artist-name {
      font-size: 1.2em;
  }

  img.better-image.artist-cover {
      border-radius: 4px;
  }
  .artist-albums {
    .content {
      columns: 3;
    }
  }
  .header {
    font-size: 16px;
    margin: 1.4em 0 1em 0.2em;
  }
  .album-item {

    display: none;
    margin: 0.3em;
    height: 32px;
    width: 300px; 
    img {
      border-radius: 2px;
    }
    div.album-title {
      margin-top: 8px;
      cursor: pointer;
    }
    &> div {
      display: inline-block;
    }
    
    &:nth-child(-n+21){
      display:block;
    }
  }
}
.loading-ds {
  width: 100%;
  margin: 2em;
  text-align: center;
}

.ds-album-view {

  .album-track {
    padding: 0.3em;
    display: flex;
  }

  .current-album {
    float: left;
    height: 420px;
    width: 150px;
    margin: 0.4em 1.4em 0.4em 14em;
    text-align: left;
  }

  .image-container {
    text-align: right;
  }

  img.better-image {
    border-radius: 3px;
    box-shadow: 0px 3px 5px rgba(0, 0, 0, 0.19);
  }


  .album-title {
    font-size: 24px;
    margin: 0em 0 0.5em 0;
  }

  .album-content {
    margin: 16px 16px;
    /* padding: 16px 154px; */
  }
  span.track-number {
    margin: 0 0.5em;
    /* width: 8em; */
    text-align: right;
  }

  span.track-title {
    flex-grow: 100;
  }

  .album-items {
    margin-right: 2em;

    height: 420px;
    overflow-y: auto;
    overflow-x: hidden;
    
    &::-webkit-scrollbar {
      -webkit-appearance: none;
      width: 3px;
    }
    &::-webkit-scrollbar-thumb {
      border-radius: 4px;
      background-color: rgba(0, 0, 0, .1);
      box-shadow: 0 0 1px rgba(255, 255, 255, .1);
    }
  }
}

.ds-results {
  .results {
    column-count: 2;
  }
  div.album-header {
    margin-bottom: 12px;
    .image-container{
      display: inline-block;
    }
    img {
      border-radius: 2px;
    }
    div.album-info {
      display: inline-block;
      vertical-align: top;
    }
    div.album-artist {
      display: block;
      font-size: 24px;
      margin: 12px 12px;
      // vertical-align: top;
      opacity: 0.7;
      cursor: pointer;
    }
    div.album-title {
      // display: inline-block;
      margin: 6px 12px 0 12px;
      font-size: 24px;
      vertical-align: top;
      cursor: pointer;
      width: 250px;
      @include ellipsis();

    }
  }
  .cascade-result {
    margin: 0.3em;
    cursor: pointer;
    .result-name {
      // padding-top: 10px;
      vertical-align: top;
      width: 280px;
      display: inline-block;
      text-overflow: ellipsis;
      white-space: nowrap;
      overflow: hidden;
      transition: all 250ms ease;
    }
    .tags {
      // float: right;
      & > span {
        margin-left: 0.4em;
        width: 45px;
        &.format {
          width: 40 px;
        }
      }
    }
  }
}
.ds-results:hover .cascade-result:not(:hover) {
  transition: all 250ms ease;
  opacity: 0.7;
}
.cascade-result:hover {
  transition: all 250ms ease;
  opacity: 1;
}