/* =========================================================
   HEADER
   ========================================================= */

.fixed-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 15vw;
  background: transparent;
  z-index: 100;

  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.image-header {
  height: 100%;
}

.image-header img {
  max-height: 100%;
  filter: invert(1);
  width: auto;
}

/* =========================================================
   PLAYER
   ========================================================= */

.player {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 30%;
  color: rgb(0, 0, 0);
}

.player button {
  background: none;
  border: none;
  cursor: pointer;
  color: rgb(0, 0, 0);
}

/* =========================================================
   MUSIC NAME
   ========================================================= */

#music-name {
  font-size: 2vh;
}

/* =========================================================
   ICONS — PREV / NEXT
   ========================================================= */

.icon-btn {
  display: flex;
  align-items: center;
}

.prev-icon,
.next-icon {
  display: flex;
  gap: 4px;
}

.prev-icon span,
.next-icon span {
  width: 0;
  height: 0;

  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
}

.prev-icon span {
  border-right: 12px solid rgb(0, 0, 0);
}

.next-icon span {
  border-left: 12px solid rgb(0, 0, 0);
}

.icon-btn:hover .prev-icon span {
  border-right-color: rgba(3, 3, 3, 0.6);
}

.icon-btn:hover .next-icon span {
  border-left-color: rgba(3, 3, 3, 0.6);
}

/* =========================================================
   ICONS — PLAY / PAUSE
   ========================================================= */

.play-btn {
  display: flex;
  align-items: center;
}

.play-icon {
  --size: 12px;

  border-top: calc(var(--size) / 1.5) solid transparent;
  border-bottom: calc(var(--size) / 1.5) solid transparent;
  border-left: var(--size) solid rgb(0, 0, 0);
}

.pause-icon {
  --h: 16px;
  --w: 3px;
  --gap: 6px;

  display: flex;
  gap: var(--gap);
}

.pause-icon span {
  width: var(--w);
  height: var(--h);
  background-color: rgb(2, 2, 2);
}

/* estado */
.play-btn .pause-icon {
  display: none;
}

.play-btn.playing .pause-icon {
  display: flex;
}

.play-btn.playing .play-icon {
  display: none;
}

/* hover */
.play-icon:hover {
  border-left-color: rgba(3, 3, 3, 0.6);
}

.play-btn:hover .pause-icon span {
  background-color: rgba(3, 3, 3, 0.6);
}

/* =========================================================
   TIME / PROGRESS
   ========================================================= */

.time {
  min-width: 38px;
  text-align: center;
  color: rgb(0, 0, 0);
}

.progress-container {
  width: 220px;
  height: 4px;
  background: rgb(0, 0, 0);
  cursor: pointer;
  position: relative;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: rgba(255, 255, 255, 0.9);
}

/* =========================================================
   VOLUME
   ========================================================= */

.volume-bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  cursor: pointer;
}

.volume-bars span {
  width: 4px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 2px;
  transition: background 0.2s ease;
}

/* alturas */
.volume-bars span:nth-child(1) {
  height: 6px;
}
.volume-bars span:nth-child(2) {
  height: 9px;
}
.volume-bars span:nth-child(3) {
  height: 12px;
}
.volume-bars span:nth-child(4) {
  height: 15px;
}
.volume-bars span:nth-child(5) {
  height: 18px;
}

/* ativo */
.volume-bars span.active {
  background: rgb(0, 0, 0);
}
