
/* Music Modal Styles */
#musicModal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
    border: 2px solid #b86bff;
    border-radius: 15px;
    padding: 20px;
    z-index: 999999;
    box-shadow: 0 10px 30px rgba(184, 107, 255, 0.3);
    min-width: 350px;
    max-width: 90vw;
    backdrop-filter: blur(10px);
    font-family: 'Patrick Hand', cursive;
    display: none;
}

.music-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    color: #b86bff;
}

.music-modal-title {
    font-size: 20px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
}

.music-modal-close {
    background: none;
    border: none;
    color: #b86bff;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: background-color 0.3s;
}

.music-modal-close:hover {
    background-color: rgba(184, 107, 255, 0.2);
}

.music-modal-content {
    color: white;
}

.current-song-display {
    text-align: center;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(184, 107, 255, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(184, 107, 255, 0.3);
}

.song-title-modal {
    font-size: 18px;
    color: #b86bff;
    margin-bottom: 10px;
}

.progress-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.progress-bar-modal {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    overflow: hidden;
    cursor: pointer;
}

.progress-fill-modal {
    height: 100%;
    background: linear-gradient(90deg, #b86bff, #8b4cbf);
    width: 0%;
    transition: width 0.1s;
}

.time-display {
    font-size: 12px;
    color: #ccc;
    min-width: 35px;
}

.music-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.control-button {
    background: linear-gradient(45deg, #b86bff, #8b4cbf);
    border: none;
    color: white;
    padding: 12px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.control-button:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(184, 107, 255, 0.4);
}

.control-button.play-pause {
    padding: 15px 18px;
    font-size: 20px;
}

.volume-section {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.volume-label {
    color: #b86bff;
    font-size: 14px;
    min-width: 60px;
}

.volume-slider-modal {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    outline: none;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.volume-slider-modal::-webkit-slider-thumb {
    appearance: none;
    width: 16px;
    height: 16px;
    background: #b86bff;
    border-radius: 50%;
    cursor: pointer;
}

.volume-value {
    color: #ccc;
    font-size: 14px;
    min-width: 40px;
}

.auto-play-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 10px;
}

.toggle-switch {
    position: relative;
    width: 50px;
    height: 24px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.toggle-switch.active {
    background: #b86bff;
}

.toggle-slider {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s;
}

.toggle-switch.active .toggle-slider {
    transform: translateX(26px);
}

.now-playing-message {
    color: #b86bff;
    font-size: 12px;
    margin-bottom: 10px;
}

.volume-slider-modal::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: #b86bff;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.volume-value {
    color: white;
    font-size: 14px;
    min-width: 30px;
}

.auto-play-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    margin-top: 10px;
}

.toggle-switch {
    position: relative;
    width: 50px;
    height: 24px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.toggle-switch.active {
    background: #b86bff;
}

.toggle-slider {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s;
}

.toggle-switch.active .toggle-slider {
    transform: translateX(26px);
}

.music-trigger-button {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(45deg, #b86bff, #8b4cbf);
    border: none;
    color: white;
    padding: 15px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    z-index: 999998;
    box-shadow: 0 5px 15px rgba(184, 107, 255, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
}

.music-trigger-button:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(184, 107, 255, 0.5);
}

@media (max-width: 768px) {
    #musicModal {
        min-width: 300px;
        padding: 15px;
    }
    
    .music-trigger-button {
        top: 10px;
        right: 10px;
        padding: 12px;
        font-size: 18px;
    }
}
