@import 'src/styles/variables';

.place {
  position: relative;
  height: $bar_height;
  flex: 0 1 500px;
  display: flex;
}

.wrap {
  @include outer_shadow();
  display: flex;
  border-radius: $radius $radius 0 0;
  align-items: center;
  background: $content_bg_lightest;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: $bar_height;
  flex-direction: column;
  transform: translate(0, 0);
  z-index: 3;
  min-width: 0;
}

.status {
  flex: 0 0 $bar_height;
  display: flex;
  flex-direction: row;
  width: 100%;
  position: absolute;
  z-index: 1;
  height: $bar_height;
}

.playpause,
.close {
  flex: 0 0 $bar_height;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;

  svg {
    width: 32px;
    height: 32px;
    fill: $gray_50;
    stroke: none;
  }
}

.close {
  svg {
    width: 24px;
    height: 24px;
  }
}

.info {
  flex: 1;
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  padding: 10px;
  flex-direction: column;
}

.title {
  color: $gray_50;
  font: $font_14_semibold;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

.progress {
  position: relative;
  height: 20px;
  width: 100%;
  cursor: pointer;

  &::after {
    content: ' ';
    top: 9px;
    left: 0;
    width: 100%;
    height: 2px;
    background: $gray_50;
    position: absolute;
    border-radius: 2px;
    opacity: 0.5;
  }
}

.bar {
  top: 7px;
  left: 0;
  width: 100%;
  height: 6px;
  background: $gray_50;
  position: absolute;
  border-radius: 2px;
}
