And here we should change to { width: calc((100% - 52rem) / 2); } due to the width of #player-seek-bar should be 52rem. And the width in #player-seek-elapsed can be removed.