.volume {
    position: absolute;
    width: 30px;
    height: 100%;
    background-color: #242424;
    border-radius: 25px;
    right: 0;
    transition: all 0.5s;
    transition-delay: 0.5s;
    pointer-events: none;

    /* Prevents hover before player loads javascript */
}

.volume:hover {
    width: 200px;
    background-color: #323232;
    transition: all 0.5s;
}

.volume:hover .range {
    transition: all 0.5s;
    opacity: 1;
}

.volume:hover .icon {
    background-color: #f66d3c;
}

.volume:hover .minus,
.volume:hover .plus {
    transition: all 0.5s;
    opacity: 1;
}

.volume .icon {
    position: absolute;
    height: 100%;
    width: 30px;
    top: 50%;
    transform: translateY(-50%);
    left: calc(100% - 30px);
    border: 2px solid #f66d3c;
    border-radius: 50%;
}

#volumeIcon {
    position: absolute;
    height: 80%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.volume .plus,
.volume .minus {
    position: absolute;
    height: 100%;
    width: 10px;
    opacity: 0;
    transition: all 0.5s;
    transition-delay: 0.5s;
}

.volume .plus {
    right: calc(30px + 5px);
}

.volume .minus {
    left: 5px;
}

.range {
    -webkit-appearance: none;
    -moz-appearance: none;
    position: absolute;
    width: 65%;
    height: 100%;
    left: 0;
    right: 30px;
    margin: auto;
    background-color: transparent;
    opacity: 0;
    cursor: default;
    transition: all 0.5s;
    transition-delay: 0.5s;
}

input[type=range]::-webkit-slider-runnable-track {
    -webkit-appearance: none;
    background: rgba(59,173,227,1);
    background: -moz-linear-gradient(45deg, rgba(59,173,227,1) 0%, rgba(87,111,230,1) 25%, rgba(152,68,183,1) 51%, rgba(255,53,127,1) 100%);
    background-color: #f66d3c;
    height: 2px;
}

input[type=range]:focus {
    outline: none;
}

input[type=range]::-moz-range-track {
    -moz-appearance: none;
    background-color: #f66d3c;
    height: 2px;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    border: 2px solid;
    border-radius: 50%;
    height: 18px;
    width: 18px;
    max-width: 80px;
    position: relative;
    bottom: 7px;
    background-color: #323232;
    cursor: -webkit-grab;
    -webkit-transition: border 1000ms ease;
    transition: border 1000ms ease;
    margin-top: -1px;
}

input[type=range]::-moz-range-thumb {
    -moz-appearance: none;
    border: 2px solid;
    border-radius: 50%;
    height: 15px;
    width: 15px;
    max-width: 80px;
    position: relative;
    bottom: 7px;
    background-color: #323232;
    cursor: -moz-grab;
    -moz-transition: border 1000ms ease;
    transition: border 1000ms ease;
}

input[type=range]::-ms-thumb {
    -moz-appearance: none;
    border: 2px solid;
    border-radius: 50%;
    height: 15px;
    width: 15px;
    max-width: 80px;
    position: relative;
    bottom: 7px;
    background-color: #323232;
    cursor: -moz-grab;
    -moz-transition: border 1000ms ease;
    transition: border 1000ms ease;
}

input[type=range]:hover::-webkit-slider-thumb {
    height: 21px;
    width: 21px;
    margin-top: -2px;
}

input[type=range]:hover::-moz-range-thumb {
    height: 18px;
    width: 18px;
}

.range.orange::-webkit-slider-thumb {
    border-color: #f66d3c;
}

.range.orange::-moz-range-thumb {
    border-color: #f66d3c;
}

input[type=range]::-webkit-slider-thumb:active {
    cursor: -webkit-grabbing;
}

input[type=range]::-moz-range-thumb:active {
    cursor: -moz-grabbing;
}