/* Floating Music Control Wrapper */
.wrsvp-music-control {
    position: fixed;
    z-index: 9999;
    /* Default spacing */
    bottom: 20px;
    right: 20px;
}

/* Positions - Increased spacing */
.wrsvp-pos-bottom-right {
    bottom: 30px;
    right: 30px;
}

.wrsvp-pos-bottom-left {
    bottom: 30px;
    left: 30px;
}

.wrsvp-pos-top-right {
    top: 30px;
    right: 30px;
}

.wrsvp-pos-top-left {
    top: 30px;
    left: 30px;
}

/* The Button - Auto-size like WeddingPress */
.wrsvp-music-btn {
    /* No fixed width/height - auto-size from icon + padding */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50% !important;
    border: 2px solid #fff;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    position: relative;
    flex-shrink: 0;
    transition: all 0.3s ease;
    outline: none;
    overflow: hidden;
    /* Padding creates the button size */
    padding: 0.5em;
}

.wrsvp-music-btn:hover {
    transform: scale(1.1);
}

/* Rotating Animation when playing */
.wrsvp-music-playing {
    animation: wrsvpSpin 4s linear infinite;
}

/* Icon centering - Flexbox handles this */
.wrsvp-music-btn i,
.wrsvp-music-btn svg {
    pointer-events: none;
    /* Flexbox centers automatically */
    line-height: 1;
}

/* Pause State (Optional: Pulse or different look) */
.wrsvp-music-paused {
    opacity: 0.8;
}

@keyframes wrsvpSpin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .wrsvp-music-control {
        bottom: 25px;
        right: 25px;
    }

    .wrsvp-pos-bottom-left {
        bottom: 25px;
        left: 25px;
    }

    .wrsvp-pos-top-right {
        top: 25px;
        right: 25px;
    }

    .wrsvp-pos-top-left {
        top: 25px;
        left: 25px;
    }
}