/* Floating Music Player */
.floating-player {
    position: fixed;
    top: 50px;
    left: 50px;
    width: 320px;
    background-color: #111;
    border: 1px solid #444;
    border-radius: 16px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    z-index: 9999;
    cursor: grab;
    touch-action: none;
    color: #fff;
}

/* Header */
.player-header {
    background-color: #111;
    padding: 0.75rem 1rem;
    text-align: center;
    font-weight: bold;
    user-select: none;
    border-bottom: 1px solid #444;
}

/* Player Body */
.player-body {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Controls */
.controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}

/* Circular Buttons */
.btn {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: #222;
    color: #fff;
    border-radius: 50%;
    cursor: pointer;
    outline: none;
    transition: background 0.2s ease;
}

.btn:hover {
    background: #333;
}

/* Play Button */
.play-icon {
    width: 0;
    height: 0;
    border-left: 12px solid #fff;
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
}

/* Pause Button */
.pause-icon {
    display: flex;
    gap: 5px;
}

.pause-icon span {
    width: 5px;
    height: 16px;
    background-color: #fff;
    display: block;
}

/* Track Info */
.track-info {
    margin-top: 1rem;
    text-align: center;
    color: #ccc;
}

/* Volume Control */
.volume-wrapper {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background-color: #111;
    border: 1px solid #555;
    border-radius: 20px;
    padding: 0 10px;
    width: 220px;
    height: 44px;
    margin-top: 1rem;
}

.volume-icon {
    width: 24px;
    height: 24px;
    background: url('data:image/svg+xml;utf8,<svg width="24" height="24" fill="%23FFF" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M11 5l-5 5H2v4h4l5 5V5zM15.54 8.46L14.12 9.88c1.25 1.25 1.25 3.27 0 4.53l1.42 1.42c2.06-2.06 2.06-5.39 0-7.46zM19 5.99l-1.41 1.41c2.72 2.72 2.72 7.14 0 9.86L19 18.67c3.51-3.51 3.51-9.21 0-12.68z"/></svg>') no-repeat center center;
    background-size: contain;
    margin-right: 10px;
}

.volume-slider {
    width: 100%;
    cursor: pointer;
}

/* Additional Code for Mobile: Expandable Circle */
@media (max-width: 768px) {
    /* Mobile circle that expands on tap */
    .mobile-circle {
        position: fixed;
        bottom: 20px;
        right: 20px;
        width: 60px;
        height: 60px;
        border-radius: 50%;
        background-color: #111;
        border: 2px solid #444;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
        z-index: 10000;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.3s ease;
    }
    
    /* Expanded state: changes size and border-radius */
    .mobile-circle.expanded {
        width: 320px;
        height: 320px;
        border-radius: 16px;
    }
}