.wslp-player {
    position: fixed;
    z-index: 2147483000;
    bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: inherit;
}

.wslp-player--bottom-right {
    right: 20px;
    flex-direction: row-reverse;
}

.wslp-player--bottom-left {
    left: 20px;
}

.wslp-player__toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: auto;
    min-width: 58px;
    height: 46px;
    padding: 0 12px;
    color: #fff;
    background: rgba(20, 24, 31, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 23px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.24);
    cursor: pointer;
    transition: transform 160ms ease, background 160ms ease;
}

.wslp-player__toggle:hover,
.wslp-player__toggle:focus-visible {
    background: rgba(20, 24, 31, 1);
    transform: translateY(-1px);
    outline: none;
}

.wslp-player__toggle:focus-visible,
.wslp-autostart:focus-visible {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.72), 0 8px 24px rgba(0, 0, 0, 0.24);
}

.wslp-player__current-volume,
.wslp-volume-readout,
.wslp-volume-toast__value {
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.wslp-icon {
    position: relative;
    display: inline-block;
    width: 0;
    height: 0;
}

.wslp-icon--play {
    margin-left: 2px;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 12px solid currentColor;
}

.wslp-icon--pause {
    display: none;
    width: 12px;
    height: 16px;
    background: linear-gradient(to right, currentColor 0 4px, transparent 4px 8px, currentColor 8px 12px);
}

.wslp-player.is-playing .wslp-icon--play {
    display: none;
}

.wslp-player.is-playing .wslp-icon--pause {
    display: inline-block;
}

.wslp-player__panel {
    display: flex;
    align-items: center;
    gap: 9px;
    width: 0;
    max-width: 0;
    height: 46px;
    padding: 0;
    overflow: hidden;
    color: #fff;
    background: rgba(20, 24, 31, 0.94);
    border: 1px solid transparent;
    border-radius: 23px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.24);
    opacity: 0;
    transform: translateX(8px);
    transition: width 180ms ease, max-width 180ms ease, padding 180ms ease, opacity 150ms ease, transform 180ms ease;
}

.wslp-player--bottom-left .wslp-player__panel {
    transform: translateX(-8px);
}

.wslp-player.is-open .wslp-player__panel {
    width: 205px;
    max-width: calc(100vw - 100px);
    padding: 0 16px;
    border-color: rgba(255, 255, 255, 0.2);
    opacity: 1;
    transform: translateX(0);
}

.wslp-volume-control {
    width: 144px;
    min-width: 0;
    accent-color: #ffffff;
    cursor: pointer;
}

.wslp-autostart,
.wslp-volume-toast {
    position: absolute;
    bottom: 58px;
    right: 0;
    display: flex;
    align-items: baseline;
    gap: 6px;
    padding: 8px 11px;
    color: #fff;
    background: rgba(20, 24, 31, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.wslp-autostart {
    z-index: 2;
    font: inherit;
    font-size: 12px;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    transition: transform 150ms ease, background 150ms ease;
}

.wslp-autostart:hover,
.wslp-autostart:focus-visible {
    background: rgba(20, 24, 31, 1);
    outline: none;
    transform: translateY(-1px);
}

.wslp-autostart__value {
    min-width: 1ch;
}

.wslp-autostart.is-manual {
    padding-right: 13px;
    padding-left: 13px;
}

.wslp-autostart.is-starting {
    cursor: wait;
}

.wslp-autostart.is-starting:hover {
    transform: none;
}

.wslp-volume-toast {
    z-index: 1;
    opacity: 0;
    pointer-events: none;
    transform: translateY(5px);
    transition: opacity 150ms ease, transform 150ms ease;
}

.wslp-player--bottom-left .wslp-autostart,
.wslp-player--bottom-left .wslp-volume-toast {
    right: auto;
    left: 0;
}

.wslp-volume-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 480px) {
    .wslp-player--bottom-right {
        right: 12px;
    }

    .wslp-player--bottom-left {
        left: 12px;
    }

    .wslp-player {
        bottom: 12px;
    }

    .wslp-player.is-open .wslp-player__panel {
        width: min(185px, calc(100vw - 92px));
        padding: 0 12px;
    }

    .wslp-volume-control {
        width: 120px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .wslp-player *,
    .wslp-player {
        transition-duration: 0.01ms !important;
    }
}
