/* Music widget */
/* made to look kinda like the pebble watch music app */

/* base */
.pbl {
  width: 12em;
  margin: 0px 0px 0px 0px;
  position: relative;
  border-radius: 0px;
}

/* Bg for song art */
.pbl-bg {
  inset: 0;
  position: absolute;
  overflow: hidden;
  border-radius: 0px;
  background-size: cover;
  background-position: center top;
  z-index: 0;
}
/* gradient atop art */
.pbl-bg::after {
  inset: 0;
  position: absolute;
  content: '';
  background: linear-gradient(to bottom,
    #0f0800D9 0%,
    #0f0800BF 25%,
    #0f080099 50%,
    #0f0800E6 75%,
    #0f0800F2 100%
  );
}

/* Main content */
.pbl-screen {
  display: flex;
  min-height: 12em;
  position: relative;
  gap: 1em;
  padding: 0px 0px 0px 1em;
  z-index: 1;
}

/* song meta + timeline */
.pbl-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 1em;
}

.pbl-title {
  font-size: 1.4em;
  font-weight: bold;
  line-height: 1;
  margin: 2px 0;
}

.pbl-artist {
  font-size: .7em;
  line-height: 1;
}

/* Timeline */
.pbl-timeline {
  margin-top: 0.6em;
}
.pbl-track {
  position: relative;
  height: 0.6em;
  background-color: #e8e6e4;
  border-radius: 0px;
  border: 1px solid;
  border-color: #0f0800;
  cursor: pointer;
}
.pbl-fill {
  height: 100%;
  width: 0%;
  background-color: #8f0800;
  pointer-events: none;
}
.pbl-times {
  display: flex;
  justify-content: space-between;
  font-size: 1.2rem;
}

/* controls */
.pbl-ctrls {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: fit-content;
  background: #0f0800;
  gap: 1.5em;
  padding: 1.5em 0px 1.5em 0px;
}
.pbl-btn {
  background: #0f0800;
  border: none;
  color: #e8e6e4;
  width: 2.1em;
  height: 2.1em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0px 0px 0px 0px;
  transition: transform .123s;
}
.pbl-btn:active { transform: scale(.80); }
.pbl-btn svg {
  width: 1.6em;
  height: 1.6em;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.5));
}