$playlist-editor-width: 720px;
$playlist-top-height: 33px;
$contents-mini-width: 560px;

.playlist-contents-mini {
  float: right;
  padding: 40px 30px 0 30px;
  width: $contents-mini-width;
  height: 100%;
}

.playlist {
  height: 100vh;
}

.playlist-body {
  height: calc( 100% - #{$top-bar-sub-height});
}

.playlist-editor-wrapper {
  float: left;
  width: calc(100% - #{$contents-mini-width});
  height: 100%;
  background: #f6f6f6;
  padding-top: 32px;
}

.playlist-editor {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.playlist-top {
  padding: 0 40px 0 40px;
  max-width: 960px;
  width: 100%;
  height: $playlist-top-height;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.playlist-items {
  padding: 0 40px 0 40px;
  width: 100%;
  height: calc(100% - #{$playlist-top-height});
  overflow-y: scroll;
}

.playlist-placeholder {
  width: 100%;
  height: 60px;
  margin-bottom: 5px;
}

@mixin duration {
  @include align-center-vertical;
  width: 90px;
  height: 30px;
  position: absolute;
  right: 220px;
  font-size: 13px;
  color: $color-black-text;
}

.playlist-item {
  @include align-center-vertical;
  position: relative;
  width: 100%;
  height: 60px;
  max-width: 960px;
  margin: 0 auto 5px auto;
  background-color: white;
  border: solid 1px #ebebeb;
  user-select: none;

  &--hovered {
    @extend .playlist-item;
    background-color: #fafafa;
  }

  @mixin type {
    @include size(19px);
    float: left;
    margin-right: 15px;
  }

  &__thumbnail {
    @include thumbnail;
    width: 107px;
    height: 60px;
  }

  &__name {
    width: calc(100% - 470px);
    font-size: 13px;
    text-align: left;
    color: #333333;
    @include ellipse-text;
  }

  &__type--image {
    @include image;
    @include type;
    margin-left: 30px;
  }

  &__type--video {
    @include video;
    @include type;
    margin-left: 30px;
  }

  &__type--scene {
    @include scene;
    @include type;
    margin-left: 30px;
  }

  &__effect {
    @include align-center-vertical;
    width: 100px;
    height: 30px;
    position: absolute;
    right: 123px;
    display: flex;
    justify-content: center;
    font-size: 13px;
    color: $color-black-text;
    button {
      cursor: pointer;
    }
  }

  &__duration {
    @include duration;
    justify-content: left;
    button {
      cursor: pointer;
    }

    &__video {
      @include duration;
      justify-content: center;
    }
  }

  &__fitMode {
    @include align-center-vertical;
    width: 65px;
    height: 30px;
    position: absolute;
    right: 38px;
    display: flex;
    justify-content: center;
    font-size: 13px;
    color: $color-black-text;
    button {
      cursor: pointer;
    }
  }

  &__delete {
    @include cross-button;
    @include size(13px);
    position: absolute;
    right: 15px;
    cursor: pointer;
  }

  &-shadow {
    width: calc(100% - 5px);
    box-shadow: 0 5px 12px 0 rgba(0, 0, 0, 0.3);
  }

  &-preview-link {
    position: absolute;
    top: 0;
    cursor: pointer;
  }

  &-preview {
    @include align-center-both;
    width: 107px;
    height: 59px;
    position: absolute;
    background-color: rgba(0, 0, 0, 0.3);

    &__play {
      @include play;
      @include size(25px ,18px)
    }
  }

  &-drag-placeholder {
    width: 100%;
    max-width: 960px;
    height: 550px;
    border: 1px dashed #cccccc;
    margin: 27px auto 0 auto;
    color: #c7c7c7;
    font-size: 13px;
    @include align-center-both;
  }

}

.playlist-summary {
  width: 126px;
  @include align-center-vertical;

  &__label {
    font-size: 13px;
    text-align: left;
    color: #c7c7c7;
  }

  &__value {
    margin-left: 7px;
    font-size: 13px;
    font-weight: 600;
    text-align: left;
    color: #777777;
    margin-right: 25px;
  }
}

.playlist-resolution {
  height: 18px;
  display: flex;
  float: right;

  &__value {
    font-size: 13px;
    text-align: right;
    color: #c7c7c7;
    padding-right: 10px;
  }

  &__horizontal {
    @include resolution-horizontal-small;
    @include size(19px);
  }

  &__vertical {
    @include resolution-vertical-small;
    @include size(19px);
  }
}

.drop-down-menu.playlist-fitMode-drop-down-menu{
  width: 140px;
  left: -75px;
}

.drop-down__item.playlist-fitMode-drop-down__item {
  justify-content: flex-start;
  padding-left: 14px;
}

.drop-down__item--selected.playlist-fitMode-drop-down__item--selected {
  @extend .drop-down__item.playlist-fitMode-drop-down__item;
}

.dragging {
  position: fixed;
  height: 74px;
  left: -2000px;
  top: -500px;
}

.playlist-fitMode-drop-down{
  &__icon {
    &-fit-to-screen {
      @include fit-to-screen;
      @include size(20px, 16px);
      margin-right: 12px;
      &--selected {
        @include fit-to-screen-focus;
        @include size(20px, 16px);
        margin-right: 12px;
      }
    }

    &-stretch {
      @include stretch;
      @include size(20px, 16px);
      margin-right: 12px;
      &--selected {
        @include stretch-focus;
        @include size(20px, 16px);
        margin-right: 12px;
      }
    }

    &-crop-to-fit {
      @include crop-to-fit;
      @include size(20px, 16px);
      margin-right: 12px;
      &--selected {
        @include crop-to-fit-focus;
        @include size(20px, 16px);
        margin-right: 12px;
      }
    }
  }
}