.canvas-container {
    position: relative;
    display: inline-flex;
    cursor: pointer;
    align-items: center;

    .controls {
        position: absolute;
        bottom: 0px;
        left: 0px;
        right: 0px;
        display: flex;
        justify-content: space-between;
        align-items: flex-end;
        gap: 8px;
        background: linear-gradient(0deg, rgb(0, 0, 0), rgba(0, 0, 0, 0));
        min-height: 40px;
        padding: 10px;
        opacity: 0;
        transition: opacity .2s;
        cursor: default;
    }

    .control-left {
        padding-left: 2px;
    }

    .control-right {
        display: flex;
        gap: 8px;
    }

    .controls:hover {
        opacity: 1;
        transition: opacity .2s;
    }

    .controls-show {
        opacity: 1;
        transition: opacity .2s;
    }

    .controls-volume {
        display: flex;
        gap: 8px;
        align-items: center;
    }

    .controls .btn-pause {
        display: block;
    }

    .controls .btn-play {
        display: none;
    }

    .controls.controls-pause .btn-pause {
        display: none;
    }

    .controls.controls-pause .btn-play {
        display: block;
    }

    .slider-volume {
        cursor: pointer;
        height: 16px;
        max-width: 132px;
    }

    .btn-control {
        border: 0px;
        background-color: unset;
        cursor: pointer;
        width: unset;
        height: 22px;
        padding: 0px;
    }

    canvas {
        border: 0;
        max-width: 100%;
    }

    .hide-container {
        position: absolute;
        left: 0;
        top: 0;
        width: 0;
        height: 0;
        opacity: 0;
    }

    .loader {
        position: absolute;
        top: calc(50% - 24px);
        left: calc(50% - 24px);
        width: 48px;
        height: 48px;
        border-radius: 50%;
        display: inline-block;
        border-top: 3px solid #000000;
        border-right: 3px solid transparent;
        box-sizing: border-box;
        animation: rotation 1s linear infinite;
    }
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}
