.glx-radio,
.glx-radio * {
    box-sizing: border-box;
}

.glx-radio {
    position: fixed;
    left: 18px;
    bottom: var(--glx-radio-bottom, 18px);
    z-index: 99992;
    width: min(340px, calc(100vw - 36px));
    min-height: 62px;
    display: grid;
    grid-template-columns: 44px 1fr 30px;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 22px;
    border: 1px solid rgba(125,211,252,.24);
    background: linear-gradient(135deg, rgba(2,6,23,.92), rgba(15,23,42,.90));
    color: #f8fafc;
    box-shadow: 0 20px 44px rgba(0,0,0,.38), inset 0 1px 0 rgba(255,255,255,.06);
    backdrop-filter: blur(16px);
}

.glx-radio__toggle,
.glx-radio__switch,
.glx-radio__min,
.glx-radio-pill {
    border: 0;
    cursor: pointer;
    font-family: inherit;
}

.glx-radio__toggle {
    width: 44px;
    height: 44px;
    border-radius: 16px;
    color: #020617;
    background: linear-gradient(135deg, #7dd3fc, #c084fc);
    font-weight: 950;
    box-shadow: 0 12px 24px rgba(56,189,248,.22);
}

.glx-radio__pause,
.glx-radio.is-playing .glx-radio__play {
    display: none;
}

.glx-radio.is-playing .glx-radio__pause {
    display: inline;
}

.glx-radio__body {
    min-width: 0;
}

.glx-radio__top {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.glx-radio__top strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 950;
}

.glx-radio__switch {
    flex: 0 0 auto;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(56,189,248,.12);
    color: #7dd3fc;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.glx-radio p {
    margin: 4px 0 0;
    color: rgba(226,232,240,.76);
    font-size: 12px;
    line-height: 1.25;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.glx-radio__min {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    background: rgba(15,23,42,.74);
    color: rgba(248,250,252,.84);
    font-size: 18px;
    line-height: 1;
}

.glx-radio-pill {
    position: fixed;
    left: 18px;
    bottom: var(--glx-radio-bottom, 18px);
    z-index: 99992;
    padding: 10px 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, #7dd3fc, #c084fc);
    color: #020617;
    font-weight: 950;
    box-shadow: 0 16px 32px rgba(0,0,0,.32);
}

@media (max-width: 767px) {
    .glx-radio {
        left: 12px;
        right: 12px;
        bottom: var(--glx-radio-bottom, calc(env(safe-area-inset-bottom, 0px) + 84px));
        width: auto;
        grid-template-columns: 42px 1fr 28px;
        border-radius: 20px;
    }

    .glx-radio-pill {
        left: 12px;
        bottom: var(--glx-radio-bottom, calc(env(safe-area-inset-bottom, 0px) + 84px));
    }

    body.glx-radio-minimized .glx-radio {
        display: none;
    }
}

.glx-radio__controls {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 7px;
}

.glx-radio__mute,
.glx-radio__volstep {
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    border: 1px solid rgba(125,211,252,.18);
    border-radius: 999px;
    background: rgba(15,23,42,.72);
    color: rgba(248,250,252,.92);
    cursor: pointer;
    font-size: 13px;
    font-weight: 900;
    line-height: 1;
    touch-action: manipulation;
}

.glx-radio__volstep {
    display: inline-grid;
    place-items: center;
}

.glx-radio__volume {
    width: 100%;
    min-width: 76px;
    height: 32px;
    accent-color: #7dd3fc;
    touch-action: pan-x;
    cursor: pointer;
}
.glx-radio__volume::-webkit-slider-runnable-track {
    height: 8px;
    border-radius: 999px;
}

.glx-radio__volume::-webkit-slider-thumb {
    width: 24px;
    height: 24px;
    margin-top: -8px;
}

.glx-radio__volume::-moz-range-track {
    height: 8px;
    border-radius: 999px;
}

.glx-radio__volume::-moz-range-thumb {
    width: 24px;
    height: 24px;
}


@media (max-width: 767px) {
    .glx-radio__controls {
        gap: 7px;
        margin-top: 8px;
    }

    .glx-radio__mute,
    .glx-radio__volstep {
        width: 34px;
        height: 34px;
        font-size: 15px;
    }

    .glx-radio__volume {
        min-width: 110px;
        height: 38px;
    }
}


/* 4.0.8: close means close; do not show a desktop radio pill after X. */
body.glx-radio-closed .glx-radio,
body.glx-radio-closed .glx-radio-pill {
    display: none !important;
}

@media (max-width: 767px) {
    .glx-radio__volume,
    .glx-radio__volstep {
        display: none !important;
    }

    .glx-radio__controls {
        justify-content: flex-start;
        margin-top: 8px;
    }

    .glx-radio__mute {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }
}
