:root {
  --blob-distance: 70px;
}

.Controls {
  position: fixed;
  background: var(--clr-bg-secondary);
  left: var(--gap-sm);
  top: 50%;
  transform: translateY(-50%);
  padding: var(--gap-sm);
  border-radius: var(--radius-md);
  width: 100px;
  box-sizing: border-box;
  z-index: 10;
}

.chapters {
  position: relative;
  height: calc(var(--blob-distance) * 3);
  width: 100%;
  margin-bottom: var(--gap-md);
}

.controlsWrapper,
.gooWrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.gooey {
  filter: url('#goo');
}

.control,
.blob {
  position: absolute;
  left: 50%;
  cursor: pointer;
}

.control {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: auto;
  padding: var(--gap-sm);
  box-sizing: border-box;
  transform: translateX(-50%);
}

.control>img {
  width: 100%;
}

.blob {
  background: var(--clr-bg);
  border-radius: 20px;
  aspect-ratio: 1/1;
  transition: transform .6s;
  width: 64px;
  height: 64px;
  transform-origin: 0;
  transform: scale(0) translateX(-50%);
}

.selected {
  transform: scale(1) translateX(-50%);
}

.control:nth-child(2),
.blob:nth-child(2) {
  top: var(--blob-distance);
}

.control:nth-child(3),
.blob:nth-child(3) {
  top: calc(var(--blob-distance) * 2);
}

@media screen and (max-width: 1080px) {
  .Controls {
    top: unset;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    border-radius: 0;
    transform: translateY(0);
  }

  .chapters {
    width: calc(var(--blob-distance) * 3);
    height: 64px;
    margin: auto;
  }

  .control,
  .blob {
    top: 0;
    left: 0;
  }

  .blob {
    transform: scale(0);
    transform-origin: center;
  }

  .control {
    transform: translateX(0);
  }

  .control,
  .control>img {
    width: auto;
    height: 100%;
  }

  .control:nth-child(2),
  .blob:nth-child(2) {
    top: unset;
    left: var(--blob-distance);
  }

  .control:nth-child(3),
  .blob:nth-child(3) {
    top: unset;
    left: calc(var(--blob-distance) * 2);
  }

  .selected {
    transform: scale(1);
  }
}