@import '../global-styles';
$white: #FFF;
$black: #000;

$seekbarHeight: 3px;

:local .wrapper {
    padding: 10px 0;
    position: relative;
    box-sizing: content-box;
}

:local .inner {
    height: $seekbarHeight;
    position: relative;
}

:local .padding {
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 9;
}

:local .seekbar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform-origin: left center;

    &.duration {
        pointer-events: none;
        background-color: $white;
    }

    &.buffered {
        pointer-events: none;
        background-color: rgba($white, .2);
    }

    &.fill {
        pointer-events: none;
        background-color: $color-primary;
    }

    &.highlight {
        pointer-events: none;
        background-color: $color-primary;
    }
}

:local .seekDot {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    width: $dot-size;
    height: $dot-size;
    border-radius: 50%;
    background-color: $white;
    transform: translate(-50%, -25%);
}
