@media (max-width: 600px) {
    .music-player {
        max-width: 100vw;
        width: 100vw;
        padding: 0.7rem 0.2rem;
        margin: 12px auto 0 auto;
        border-radius: 16px;
    }
    .music-player-content {
        gap: 0.7rem;
    }
    #cover-art {
        width: 48px;
        height: 48px;
    }
    #song-title {
        font-size: 0.95rem;
    }
    #song-artist {
        font-size: 0.85rem;
    }
    .player-controls {
        gap: 0.5rem;
    }
    .progress-bar {
        height: 5px;
    }
    .control-buttons {
        gap: 0.7rem;
        margin-top: 4px;
    }
    .control-btn {
        font-size: 1rem;
        padding: 6px;
    }
    .control-btn.main-btn {
        font-size: 1.2rem;
    }
    .modal-content {
        padding: 0.7rem 0.2rem;
        max-width: 99vw;
        border-radius: 14px;
    }
    .song-search-input {
        font-size: 0.9rem;
        padding: 5px 6px;
    }
    .song-list-wrapper {
        max-height: 120px;
        padding: 2px 0;
    }
    .song-item-title {
        font-size: 0.9rem;
    }
    .song-item-artist {
        font-size: 0.8rem;
    }
}
@media (max-width: 600px) {
    .music-player {
        max-width: 100%;
        padding: 1rem 0.5rem;
        margin: 20px auto 0 auto;
    }
    .music-player-content {
        gap: 1rem;
    }
    #cover-art {
        width: 60px;
        height: 60px;
    }
    #song-title {
        font-size: 1rem;
    }
    #song-artist {
        font-size: 0.9rem;
    }
    .player-controls {
        gap: 0.7rem;
    }
    .progress-bar {
        height: 6px;
    }
    .control-buttons {
        gap: 1rem;
        margin-top: 6px;
    }
    .control-btn {
        font-size: 1.2rem;
        padding: 8px;
    }
    .control-btn.main-btn {
        font-size: 1.5rem;
    }
    .modal-content {
        padding: 1rem 0.5rem;
        max-width: 95vw;
    }
    .song-search-input {
        font-size: 0.95rem;
        padding: 6px 8px;
    }
    .song-list-wrapper {
        max-height: 180px;
        padding: 4px 0;
    }
    .song-item-title {
        font-size: 0.95rem;
    }
    .song-item-artist {
        font-size: 0.9rem;
    }
}
/* Music Player Styles */
.music-player {
    width: 100%;
    max-width: 550px;
    background: #1e1b2e;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    padding: 2rem 2.5rem;
    margin: 30px auto 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.music-player-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
}
.song-info {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}
#cover-art {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(0,0,0,0.4);
}
.song-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
    width: 100%;
}
#song-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
}
#song-artist {
    font-size: 1rem;
    color: #acacac;
}
.player-controls {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.progress-container {
    width: 100%;
}
.progress-bar {
    width: 100%;
    height: 8px;
    background: #333;
    border-radius: 5px;
    position: relative;
    margin-bottom: 8px;
    cursor: pointer;
}
.progress {
    height: 100%;
    background: linear-gradient(120deg, #6c63ff, #60dbd3);
    border-radius: 5px;
    width: 0%;
    transition: width 0.2s;
}
.time-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
    color: #acacac;
}
.control-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 10px;
}
.control-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.control-btn:hover {
    background: rgba(108,99,255,0.15);
}
.control-btn.main-btn {
    font-size: 2rem;
    background: linear-gradient(120deg, #6c63ff, #60dbd3);
    color: #fff;
    box-shadow: 0 2px 8px rgba(108,99,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}
.control-btn.main-btn:hover {
    background: linear-gradient(120deg, #60dbd3, #6c63ff);
}
.volume-container {
    position: absolute;
    bottom: 60px;
    right: 0;
    width: 120px;
    display: none;
    background: #222;
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    z-index: 10;
}
.volume-container.active {
    display: block;
}
.volume-slider {
    width: 100px;
    height: 8px;
    background: #444;
    border-radius: 5px;
    position: relative;
    margin: 0 auto;
    cursor: pointer;
}
.volume-progress {
    height: 100%;
    background: linear-gradient(120deg, #6c63ff, #60dbd3);
    border-radius: 5px;
    width: 100%;
    position: absolute;
    left: 0;
    top: 0;
}
.volume-handle {
    position: absolute;
    top: 50%;
    left: 100%;
    transform: translate(-50%, -50%);
    width: 14px;
    height: 14px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(108,99,255,0.2);
    cursor: pointer;
}
/* Song List Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 10, 15, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease-in-out;
}
.modal-overlay.visible {
    opacity: 1;
    pointer-events: auto;
}
.modal-content {
    background: #1e1b2e;
    padding: 2rem 2.5rem;
    border-radius: 20px;
    position: relative;
    max-width: 500px;
    width: 90%;
    transform: scale(0.9);
    transition: transform 0.3s ease-in-out;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
.modal-overlay.visible .modal-content {
    transform: scale(1);
}
.close-button {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #aaa;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
    z-index: 10;
}
.close-button:hover {
    color: #fff;
}
.song-list-content {
    padding: 1rem 0.5rem;
}
.song-list {
    margin-top: 1rem;
}
.song-search-container {
    margin-bottom: 1rem;
}
.song-search-input {
    width: 100%;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #333;
    font-size: 1rem;
    background: #222;
    color: #fff;
}
.song-list-wrapper {
    max-height: 220px;
    overflow-y: auto;
    border-radius: 8px;
    background: #222;
    padding: 8px 0;
}
.song-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    border-radius: 8px;
    margin-bottom: 6px;
    background: none;
    transition: background 0.2s;
    cursor: pointer;
}
.song-item:hover {
    background: #333;
}
.song-item.active {
    background: linear-gradient(120deg, #6c63ff, #60dbd3);
    color: #fff;
}
.song-info-container {
    display: flex;
    flex-direction: column;
    gap: 2px;
    align-items: flex-start;
    width: 100%;
}
.song-item-title {
    font-size: 1rem;
    font-weight: 600;
}
.song-item-artist {
    font-size: 0.95rem;
    color: #acacac;
}
.song-item-play {
    font-size: 1.2rem;
    color: #6c63ff;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.2s;
}
.song-item-play:hover {
    color: #60dbd3;
}
.song-item.active .song-item-play {
    color: #fff;
}
