.rg-progress-dot,
.rg-volume-thumb {
    touch-action: none;
    user-select: none;
    cursor: grab;
}

.rg-progress-dot:active,
.rg-volume-thumb:active {
    cursor: grabbing;
}


#rg-player {
    display: flex;
    align-items: center;
    gap: 20px;

    & .rg-live,
    & .rg-bottom,
    & .rg-podcast {
        display: flex;
        align-items: center;
        gap: 20px;
    }

    & .rg-live-title,
    & .rg-title {
        color: #bbbcbf;
        font-family: 'Poppins';
        font-size: 12px;
        font-weight: 400;
        width: 250px;
        white-space: nowrap;
        overflow: hidden;
    }
}

.rg-title-marquee {
    display: inline-flex;
    white-space: nowrap;
    width: max-content;
}

.rg-title-marquee.animate {
    animation: rg-marquee 15s linear forwards;
}

.rg-title-marquee span {
    padding-right: 60px;
}

@keyframes rg-marquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(calc(-50%));
    }
}

.rg-live-button {
    font-size: 17px;
    background: #F8DAEA !important;
    color: #2f2f2f !important;
    padding: .6em 1em;
    font-weight: 700;
    font-family: 'Poppins';
    letter-spacing: .8px;
    margin-right: 30px;
    border-radius: 0;
    text-transform: lowercase;
}

.rg-live-status {
    position: relative;
    color: #7e828a;
    font-family: 'Poppins';
    font-size: 16px;
    font-weight: 400;

    &::before {
        content: '';
        position: absolute;
        height: 10px;
        aspect-ratio: 1;
        background: #5d5d55;
        border-radius: 100%;
        top: 50%;
        transform: translateY(-50%);
        left: -15px;
    }

    &.is-live {
        color: #f8daea;

        &::before {
            background: #f8daea;
        }
    }
}





#rg-player.mode-live .rg-podcast {
    display: none;
}

#rg-player.mode-podcast .rg-podcast {
    display: flex;
}

#rg-player.mode-podcast .rg-live-title,
#rg-player.mode-podcast .rg-whatsound {
    display: none;
}















.rg-progress {
    position: absolute;
    top: -15px;
    left: -40px;
    width: 100%;
}

.rg-progress-hitbox {
    width: 100%;
    height: 5px;
    position: relative;
    background: #bcd3c5bf;
    cursor: pointer;
}

.rg-progress-bar {
    width: 0;
    height: 5px;
    background: #bcd3c5 !important;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.rg-progress-dot {
    width: 4px;
    height: calc(100% + 10px);
    position: absolute;
    background: #bcd3c5;
    top: 50%;
    transform: translateY(-50%);
}

.rg-controls {
    display: flex;
    gap: 8px;
}

.rg-controls button {
    position: relative;
    background: transparent !important;
    border: none;
    border-radius: 0;
    padding: 0;
    color: #bbbcbf;
    font-family: 'Cousine';
    font-size: 10px;
    font-weight: 600;
    line-height: 1;

    & .skip_number {
        position: absolute;
        top: 46%;
        transform: translate(-50%, -50%);
        left: 50%;
    }
}

.rg-back15 svg {
    transform: rotateY(180deg);
}

.rg-time {
    display: flex;
    font-family: 'Cousine';
    font-size: 11px;
    line-height: 1;
    color: #bbbcbf;
}









.rg-volume:not(:hover)>.audio-input {
    display: none;
}

.rg-volume {
    position: relative;
    width: 22px;
    height: 32px;
    top: 5px;

    & .audio-input {
        position: absolute;
        border: 1px solid #f8daea;
        background: #2f2f2f;
        width: 30px;
        height: 100px;
        top: 100%;
        left: 0;
        z-index: 200;
        box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
        border-radius: 1px;

        &::before {
            content: '';
            width: 0;
            height: 0;
            border: none;
            border-left: 5px solid #fff0;
            border-right: 5px solid #fff0;
            border-top: 0;
            border-bottom: 6px solid #fff;
            position: absolute;
            top: -6px;
            bottom: 0;
            left: 50%;
            transform: translate(-50%);
        }
    }
}



.rg-volume-track {
    position: relative;
    width: 2px;
    height: 75px;
    margin: 12px auto;
    background: #f8daea80;
    border-radius: 20px;
}

.rg-volume-fill {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: #f8daea;
    border-radius: inherit;
}

.rg-volume-thumb {
    position: absolute;
    left: 50%;
    bottom: 100%;
    width: 7px;
    height: 7px;
    transform: translateX(-50%);
    border-radius: 50%;
    background: white;
}

.rg-volume-hitbox {
    position: absolute;
    inset: -10px;
    cursor: pointer;
}

.rg-whatsound {
    position: relative;
    top: 2px;
    outline: none !important;
    color: #fff !important;
    font-family: 'Cousine';
    font-size: 12px;
    font-weight: 300;
    font-style: italic;
    background: linear-gradient(to right, #fff);
    background-repeat: no-repeat;
    background-position: bottom right;
    background-size: 0 1px;
    transition: background-size 500ms;

    &:hover {
        background-position: bottom left;
        background-size: 100% 1px;
    }
}


@media screen and (width > 980px) {
    .toggle-mobile {
        display: none;
    }
}

@media screen and (width <=980px) {
    .toggle-mobile {
        width: fit-content !important;
        padding: 4px 7px;
        background: #bcd3c5;
        position: absolute !important;
        right: 0;
        bottom: 100%;
    }

    #header-player:not(.mobile-open) .toggle-mobile {
        transform: rotate(180deg);
    }

    header:has(.mobile-live.is-playing) .toggle-mobile {
        background: #f8daea;
    }

    .rg-progress {
        left: -20px;
    }

    #header-player {
        position: fixed;
        top: 100vh;
        left: 0;
        display: block !important;
        padding-inline: 20px;
        transition: top .35s ease, bottom .35s ease;

        & #rg-player {
            justify-content: center;
            align-items: end;
            flex-wrap: wrap;
            gap: 5px;
            padding-block: 10px 5px;
        }

        & .rg-live-top {
            display: none;
        }

        & .rg-podcast {
            justify-content: center;
            flex-wrap: wrap;
            width: 75%;

            & .rg-controls {
                justify-content: center;
            }
        }

        & .rg-live-title,
        & .rg-title {
            max-width: 250px;
            width: fit-content;
        }

        & .audio-input {
            top: auto;
            bottom: calc(100% + 5px);

            &::before {
                rotate: 180deg;
                top: auto;
                bottom: -6px;
                right: 50%;
                left: auto;
                transform: translateX(-50%);
            }
        }
    }
}