.ambient-player {
    position: fixed;
    right: 30px;
    bottom: 30px;
    width: 72px;
    height: 72px;
    z-index: 999999;
    --ambient-ring-color: #fff;
}

.ambient-volume-ring {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    overflow: visible;
    cursor: pointer;
    transition: filter .2s ease;
    touch-action: none;
}

.ambient-volume-ring:hover {
    filter: brightness(1.2);
}

.ambient-volume-inactive,
.ambient-volume-progress {
    fill: none;
    stroke-width: 4;
    vector-effect: non-scaling-stroke;
}

.ambient-volume-inactive {
    stroke: #fff;
}

.ambient-volume-progress {
    stroke: var(--ambient-ring-color);
    stroke-linecap: butt;
}

.ambient-button {
    position: absolute;
    left: 16px;
    top: 16px;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #111;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 0 18px rgba(0,0,0,.28);
    animation: ambient-rotate 8s linear infinite;
    animation-play-state: paused;
    font-size: 13px;
    user-select: none;
    overflow: hidden;
}

.ambient-button.is-playing {
    animation-play-state: running;
}

.ambient-center-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    pointer-events: none;
    user-select: none;
}

.ambient-icon {
    position: relative;
    z-index: 2;
    pointer-events: none;
    text-shadow: 0 1px 4px rgba(0,0,0,.65);
}

@keyframes ambient-rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.ambient-player-placeholder {
    padding: 12px;
    background: #f2f2f2;
    border: 1px dashed #999;
    font-size: 13px;
}

@media (max-width: 600px) {
    .ambient-player {
        right: 18px;
        bottom: 18px;
    }
}
