.radio-player {
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
    text-align: center;
}

.radio-player__audio {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.radio-player__status {
    min-height: 1.5em;
}

.radio-player__track {
    overflow-wrap: anywhere;
}

.radio-player__listeners {
    color: #888;
    font-size: 1rem;
    font-style: italic;
}

.radio-player__circle {
    position: relative;
    width: min(220px, 70vw);
    aspect-ratio: 1;
    margin: 1rem auto .75rem;
    border-radius: 50%;
    background: url('/js/lib/circle-player/skin/bgr.jpg') center / cover no-repeat;
    filter: drop-shadow(0 7px 10px rgba(0, 0, 0, .16));
}

.radio-player__progress,
.radio-player__progress::after {
    position: absolute;
    inset: 8%;
    border-radius: 50%;
}

.radio-player__progress {
    background: conic-gradient(#d9534f var(--radio-progress, 0%), rgba(217, 83, 79, .18) 0);
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 10px), #000 calc(100% - 9px));
    mask: radial-gradient(farthest-side, transparent calc(100% - 10px), #000 calc(100% - 9px));
}

.radio-player__toggle {
    position: absolute;
    inset: 25%;
    display: grid;
    place-items: center;
    border: 1px solid rgba(0, 0, 0, .2);
    border-radius: 50%;
    background: linear-gradient(145deg, #fff, #d5d5d5);
    box-shadow: inset 0 1px 3px rgba(255, 255, 255, .95), 0 2px 4px rgba(0, 0, 0, .28);
    color: #333;
    cursor: pointer;
    touch-action: manipulation;
    transition: transform .12s ease, box-shadow .12s ease;
}

.radio-player__toggle:hover,
.radio-player__toggle:focus-visible {
    box-shadow: inset 0 1px 3px rgba(255, 255, 255, .95), 0 0 0 3px rgba(217, 83, 79, .35), 0 2px 4px rgba(0, 0, 0, .28);
}

.radio-player__toggle:active {
    transform: scale(.96);
}

.radio-player__play-icon {
    width: 0;
    height: 0;
    margin-left: 8%;
    border-top: 19px solid transparent;
    border-bottom: 19px solid transparent;
    border-left: 28px solid #666;
}

.radio-player__toggle[aria-pressed="true"] .radio-player__play-icon {
    width: 25px;
    height: 34px;
    margin-left: 0;
    border: 0;
    background: linear-gradient(90deg, #666 0 35%, transparent 35% 65%, #666 65% 100%);
}

.radio-player__volume {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    margin: 0 auto .75rem;
    color: #555;
}

.radio-player__volume-icon {
    position: relative;
    width: 18px;
    height: 16px;
}

.radio-player__volume-icon::before {
    position: absolute;
    top: 5px;
    left: 0;
    width: 6px;
    height: 7px;
    border-radius: 1px;
    background: currentColor;
    content: '';
}

.radio-player__volume-icon::after {
    position: absolute;
    top: 2px;
    left: 5px;
    width: 9px;
    height: 12px;
    border-width: 6px 8px 6px 0;
    border-style: solid;
    border-color: transparent currentColor transparent transparent;
    content: '';
}

.radio-player__volume input {
    width: 120px;
    accent-color: #d9534f;
}

@media (prefers-reduced-motion: reduce) {
    .radio-player__toggle {
        transition: none;
    }
}
