/* Lite Music Player Styles for W3W GAME */

/* Music Player Container */
.music-player-widget {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    margin-bottom: 20px;
    overflow: hidden;
    width: 250px;
    height: 250px;
    font-family: 'Arial', sans-serif;
    position: relative;
    transition: all 0.3s ease;
    border: 1px solid rgba(87, 129, 189, 0.1);
}

/* Now Playing */
.now-playing {
    display: flex;
    padding: 15px;
    align-items: center;
    border-bottom: 1px solid rgba(87, 129, 189, 0.1);
    background: linear-gradient(135deg, #f8f9fa, #fff);
}

.song-info {
    flex-grow: 1;
    overflow: hidden;
}

.song-title {
    font-weight: 600;
    font-size: 14px;
    margin: 0 0 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #333;
}

.song-artist {
    font-size: 12px;
    color: #666;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Playlist */
.playlist-container {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #fff;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
    z-index: 5;
}

.playlist-container.expanded {
    max-height: 150px;
    border-top: 1px solid rgba(87, 129, 189, 0.1);
}

.playlist {
    overflow-y: auto;
    max-height: 150px;
    padding: 5px 0;
}

.playlist-item {
    display: flex;
    align-items: center;
    padding: 8px 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 6px;
    margin: 0 5px;
}

.playlist-item:hover {
    background-color: #f0f7ff;
    transform: translateX(2px);
}

.playlist-item.active {
    background-color: rgba(87, 129, 189, 0.1);
    border-left: 3px solid #5781bd;
}

.playlist-toggle {
    position: absolute;
    right: 15px;
    top: 15px;
    background: none;
    border: none;
    cursor: pointer;
    color: #5781bd;
    font-size: 14px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    background-color: rgba(87, 129, 189, 0.1);
}

.playlist-toggle:hover {
    background-color: rgba(87, 129, 189, 0.2);
    transform: scale(1.05);
}

/* Audio Visualization */
.audio-visualization {
    height: 75px;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8f9fa, #fff);
}

.wave-container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 65px;
    width: 100%;
    gap: 3px;
}

.wave-bar {
    width: 6px;
    height: 60px;
    border-radius: 2px;
    animation: wave 1.2s ease-in-out infinite;
}

.wave-bar:nth-child(4n + 1) {
    background: linear-gradient(to top, #FE7192, #ff99b3);
}

.wave-bar:nth-child(4n + 2) {
    background: linear-gradient(to top, #0CC4F4, #66dff8);
}

.wave-bar:nth-child(4n + 3) {
    background: linear-gradient(to top, #FA7731, #ffa373);
}

.wave-bar:nth-child(4n + 4) {
    background: linear-gradient(to top, #F9D420, #ffe066);
}

@keyframes wave {
    0%, 100% {
        height: 10px;
    }
    50% {
        height: 30px;
    }
}

.wave-bar:nth-child(2n) {
    animation-delay: 0.2s;
}

.wave-bar:nth-child(3n) {
    animation-delay: 0.4s;
}

.wave-bar:nth-child(4n) {
    animation-delay: 0.6s;
}

.wave-bar:nth-child(5n) {
    animation-delay: 0.8s;
}

/* Controls */
.player-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 12px 15px;
    background: linear-gradient(135deg, #f8f9fa, #fff);
}

.control-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.control-button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: #333;
    padding: 5px;
    margin: 0 5px;
    transition: all 0.2s ease;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.control-button:hover {
    color: #5781bd;
    background-color: rgba(87, 129, 189, 0.1);
    transform: scale(1.1);
}

.play-pause {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #5781bd, #78adfe);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 15px;
    box-shadow: 0 2px 8px rgba(87, 129, 189, 0.3);
    transition: all 0.2s ease;
}

.play-pause:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(87, 129, 189, 0.4);
}

/* Progress Bar */
.progress-container {
    padding: 0 15px 15px;
}

.progress-bar {
    height: 5px;
    background-color: rgba(87, 129, 189, 0.1);
    border-radius: 3px;
    position: relative;
    cursor: pointer;
    overflow: hidden;
    transition: height 0.2s ease;
}

.progress-bar:hover {
    height: 7px;
}

.progress {
    height: 100%;
    background: linear-gradient(90deg, #5781bd, #78adfe);
    border-radius: 3px;
    width: 0%;
    position: relative;
    transition: width 0.1s linear;
}

.progress::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #fff;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.progress-bar:hover .progress::after {
    opacity: 1;
}

.time-info {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: #666;
    margin-top: 5px;
}

.control-button.shuffle {
    position: absolute;
    right: 50px;
    top: 15px;
    color: #666;
    background-color: rgba(87, 129, 189, 0.1);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.control-button.shuffle:hover {
    background-color: rgba(87, 129, 189, 0.2);
    transform: scale(1.05);
}

.control-button.shuffle.active {
    color: #5781bd;
    background-color: rgba(87, 129, 189, 0.1);
}

/* Scrollbar Styling */
.playlist::-webkit-scrollbar {
    width: 4px;
}

.playlist::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.playlist::-webkit-scrollbar-thumb {
    background: #5781bd;
    border-radius: 2px;
}

.playlist::-webkit-scrollbar-thumb:hover {
    background: #78adfe;
}