.player {
height: 64px;
min-width: 220px;
  display: inline-flex;
  background-color: #00000030;
  overflow: hidden;
  position: relative;
  box-shadow: 1px 1px #00000050;
user-select: none;
font-family: Ellipsis,Cyrillic,"ＭＳ Pゴシック","MS PGothic",sans-serif;
color: white;
}

#cover {
  display: inline-flex;
  width: 64px;
height: 64px;
  position: relative;
}

#cover-img {
  filter: drop-shadow(0px 0px 10px #000000b0);
  width: 64px;
height: 64px;
}

.cover-blur {
  position: absolute;z-index: -1;transform: translate(0%, -50%);opacity: 0.5;filter: blur(24px);
}

.play-icon {
position: absolute;
  font-size: 2em;
  color: white;
  text-shadow: 1px 1px 3px black;
  opacity: 0;
  font-family: initial;
  z-index: 9;
  user-select: none;
  transition: opacity 0.3s ease;
  inset: 0;
  background-color: black;
  display: flex;
  justify-content: center;
  align-items: center;
}

.play-icon:hover {
  opacity: 0.6;
}

.info {
  align-items: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 9;
  flex: 1;
  margin: 6px;
}

.title {
  font-size: 12px;
  width: 100%;
  text-shadow: 1px 1px black;
}

.time {
  opacity: 0.6;
  font-size: 11px;
  align-self: baseline;
  text-shadow: 1px 1px black;
}

.progress {
  display: flex;
  width: 100%;
  height: 4px;
  background: #ffffff8c;
  box-shadow: 1px 1px #00000075;
  cursor: pointer;
}

.progress-fill {
  background-color: #dfdfdf;
  width: 0%;
  height: 4px;
}

.now-playing {
  position: absolute;
  rotate: 90deg;
  left: -4px;
  bottom: 12px;
}

.now-playing-icon {
  image-rendering: pixelated;
  width: 24px;
  opacity: 0.6;
}

.line {
  background-color: #96cf9a; height: 2px; width: 100%; margin-block: 1em;
}

.metadata {
  align-self: self-start;
  margin-bottom: 2px;
  text-align: left;
}

.metadata > div {
  text-shadow: 1px 1px black;
}

#songArtist {
  font-size: 11px;opacity: 0.5;
}

#beats {
  gap: 4px;display: flex;align-items: center;justify-content: center;
}

#beats .beat-dot {
  outline: solid 1px gray;display: inline-flex;width: 4px;height: 4px; 
}

#beats .beat-dot.active {
  background: gray;       
}

.beat-dot:hover {
  filter: drop-shadow(0px 0px 4px gray);
}

.beat-dot:active {
  scale: 1.3;
}

.timeBeat {
  display: flex;
  align-self: baseline;
  gap: 6px;
  align-items: center;
  width: 100%;
  justify-content: space-between;
}

.timeBeat > div {
  margin-bottom: 1px;
}

   /* CSS */
.upload-container {
  margin-block: 2em;
  background-color: #00000075;
  padding: 0px;
  width: 320px;
  display: flex;
}

.upload-drag {
  text-wrap: wrap;
  padding: 8px;
  color: gray;
  border: solid 1px gray;
  border-style: dashed;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #00000040;
  user-select: none;
  cursor: pointer;
}

.upload-drag:hover {
  background-color: #00000060;
}

.upload-form {
  display: flex;
  flex-direction: column;
  width: 100%;
  flex-grow: 1;
  padding: 6px;
}

.upload-input-group {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
  flex-direction: column;
  align-items: self-start;
}

.upload-input-wrapper {
  display: inline-flex;
  width: 100%;
}

.upload-input-row {
  display: flex;
  gap: 4px;
}

.upload-input {
  outline: none;
  border: none;
  background-color: #00000075;
  border: solid 1px gray;
  padding: 4px;
  padding-left: 8px;
  font-family: Ellipsis, Cyrillic, "ＭＳ Pゴシック", "MS PGothic", sans-serif;
  color: gray;
  flex-grow: 1;
}

.upload-input-bpm {
  width: 30px;
}

.upload-input-url {
  width: 100%;
}

.upload-button {
  background-color: #00000075;
  outline: none;
  border: none;
  border: solid 1px gray;
  font-family: Ellipsis, Cyrillic, "ＭＳ Pゴシック", "MS PGothic", sans-serif;
  color: white;
  font-size: 1em;
  padding: 4px;
  padding-inline: 2em;
  cursor: pointer;
  width: 100%;
}

.upload-button:hover {
  background-color: #00000055;
}

.playlist {
background-color: #00000075;
  border: solid 1px gray;
  display: flex;
  max-width: 40em;
  height: auto;
  overflow-y: auto;
  flex-direction: column;
}

.playlist-header {
  border-bottom: solid 1px gray;
  padding: 6px;
}

.playlist-body {
  display: flex;
  flex-direction: column;
}

.playlist-loading {
  padding: 16px;
  opacity: 0.6;
}

.playlist-body > .playlist-item:last-child {
  border-bottom: none;
}

.playlist-item {
  display: flex;
  flex-wrap: wrap;
  border-bottom: solid 1px gray;
}

.playlist-thumb {
  width: 48px;
  height: 48px;
  display: inline-flex;
}

.playlist-thumb img {
  width: 100%;
  height: 100%;
}

.playlist-field {
  padding-inline: 1em;
  border-right: solid 1px gray;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  width: 98px;
}

.playlist-field:last-child {
  border-right: none;
}

.playlist-label {
  font-size: 12px;
  opacity: 0.67;
}

.playlist-actions {
  padding-inline: 1em;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  margin-left: auto;
}

.playlist-actions img {
  width: 34px;
  height: 36px;
  filter: invert(1) drop-shadow(1px 1px black);
}

.small-muted {
  padding: 16px;
  opacity: 0.6;
}
