.btn-segment {
    padding: 0.5em 1em;
    border-radius: 12px;
    /* background-color: #ededed; */
    background-color: transparent;
    white-space: nowrap;
    display: inline-flex;
    margin-bottom: 0.5em;
    text-decoration: none;
}

.howler-wrapper {
}

.books .book {
    width: 100%;
    flex-flow: column nowrap;
    transition: background ease 0.4s;
}

.book.wrapped {
    flex-direction: column;
}

.book.player-active {
    background-color: #ec7575;
}

.books .book .book-content .book-title {
    margin-bottom: 0;
}

.book .post-content {
    width: calc(100% + 16px);
    position: relative;
    overflow: hidden;
    flex-grow: 1;
    min-height: 0px;
    padding-top: 20px;
    margin-left: -8px;
}

.book.player-active .post-content {
    min-height: 180px;
}

.book .post-text {
    box-sizing: border-box;
    padding: 0 8px;
    /* animation-duration: 0.2s; */
}

.listen-content .items {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.playlist-wrapper {
    height: 100%;
    position: absolute;
    width: 100%;
    bottom: 0;
    z-index: 1;
    left: 0;
}

.playlist {
    height: 100%;
}

.instant {
    animation-duration: 0ms !important;
}

.time-passed, .duration {
    min-width: 25px;
}

.player {
    width: 100%;
}

.player-inner {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
}

.player .controls {
    display: flex;
    flex-direction: row;
    height: 40px;
    margin-bottom: 16px;
}

/* MUSIC CONTROLS */

.btn-control {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    cursor: pointer;
}

.btn-control:hover {
    background-color: rgba(255,255,255,0.2);
}

.play, .pause {
    background: #ffdcdc;
    margin: 0 12px;
}

.play:hover, .pause:hover {
    background: #ffdcdc;
}

.btn-control {
    height: 40px;
    display: flex;
    align-items: center;
}

.playlist-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 4px;
    box-sizing: border-box;
    padding: 4px 8px;
    border-radius: 6px;
    cursor: pointer;
}

.playlist-item .download {
    text-decoration: none;
    display: none;
    margin-right: 40px;
    flex-direction: row;
    align-items: baseline;
}

.download:hover svg {
    stroke: red;
}

.playing {
    background: rgba(255,255,255,0.2);
}

.playing-icon {
    display: none;
}

.playing .playing-icon {
    display: block;
}

.item-main {
    flex-grow: 1;
}

.item-meta {
    margin-left: auto;
    margin-right: 40px;
    display: flex;
    flex-direction: row;
}

.playlist-item:hover {
    background-color: #ffdcdc;
}

.playlist-item:hover .download {
    display: flex;
}


.playlist-item .download svg {
    height: 1em;
    margin-left: 0.5em;
}

.controls .btn {

}

.progressbar {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 500px;
    max-width: 70vw;
}

.progressbar span {
    font-size: 12px;
}

.bar-wrapper {
    width: 100%;
    position: relative;
    height: 19px;
    margin: 0 16px;
}

.player-inner .center {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.bar-wrapper .bar {
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background: rgba(255,255,255,1);
}

.loading {
    height: 40px;
    margin-bottom: 16px;
}

.bar-bg {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 100%;
    height: 4px;
    background: rgba(255,255,255,0.2);
}

/* .action-buttons {
    display: flex;
    flex-direction: row;
    position: relative;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
} */

/* .books .book .action-buttons .download-button {
    position: relative;
    right: auto;
    top: auto;
    width: auto;
    min-width: 170px;
    margin-top: 20px;
    margin-right: 15px;
    justify-content: flex-start;
} */




/* Toggle between when reading and when listening */
@-webkit-keyframes rotating /* Safari and Chrome */ {
    from {
      -webkit-transform: rotate(0deg);
      -o-transform: rotate(0deg);
      transform: rotate(0deg);
    }
    to {
      -webkit-transform: rotate(360deg);
      -o-transform: rotate(360deg);
      transform: rotate(360deg);
    }
  }
  @keyframes rotating {
    from {
      -ms-transform: rotate(0deg);
      -moz-transform: rotate(0deg);
      -webkit-transform: rotate(0deg);
      -o-transform: rotate(0deg);
      transform: rotate(0deg);
    }
    to {
      -ms-transform: rotate(360deg);
      -moz-transform: rotate(360deg);
      -webkit-transform: rotate(360deg);
      -o-transform: rotate(360deg);
      transform: rotate(360deg);
    }
  }
  .rotating {
    -webkit-animation: rotating 2s linear infinite;
    -moz-animation: rotating 2s linear infinite;
    -ms-animation: rotating 2s linear infinite;
    -o-animation: rotating 2s linear infinite;
    animation: rotating 2s linear infinite;
  }

@media (max-width: 767px) {


    /* .books .book .download-button {
        margin-top: 20px;
    }

    .action-buttons {
        position: relative;
        top: auto;
        right: auto;
        justify-content: flex-start;
    }

    .books .book .action-buttons .download-button {
        width: auto;
        min-width: 170px;
        justify-content: flex-start;
    } */
}

@media (max-width: 575px) {
    .btn-segment {
        padding: 0.5em;
        font-size: 10.5pt;
    }
}