:root {
    --main: #38af14;
    --main-dark: #8A2BE2;
    --hover: #DA80FF;
    --bg-dark: #0A0A0A;
    --bg-darker: #050505;
    --bg-light: #fff;
    --bg-lighter: #f8f9fa;
    --text-light: #fff;
    --text-dark: #222;
    --text-gray: #888;
    --transition: all 0.3s ease;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 25px rgba(179, 71, 255, 0.3);
  }

.music-hero {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), 
                url('assets/music-bg.jpg') center/cover;
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
}

.music-container {
    font-family: 'Arial', sans-serif;
    max-width: 800px;
    margin: 30px auto;
    color: #333;
}

.playlist-container {
    margin-bottom: 40px;
}

.playlist-header {
    font-size: 24px;
    margin-bottom: 20px;
    color: white;
    text-align: center;
    font-weight: 600;
}

.song-list {
    list-style: none;
    padding: 0;
    margin: 0;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.song-item {
    padding: 12px 15px;
    border-bottom: 1px solid #e0e0e0;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.song-item:last-child {
    border-bottom: none;
}

.song-item:hover {
    background-color: #f5f5f5;
}

.song-item.active {
    background-color: #e6e2ff;
}

.song-info {
    flex: 1;
}

.song-title {
    font-weight: 500;
    margin-bottom: 5px;
    color: var(--main);
}

.song-artist {
    font-size: 12px;
    color: grey;
}

.player-container {
    padding: 25px;
    background: linear-gradient(145deg, #b266b7, #15670b);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(107, 93, 255, 0.3);
    color: #fff;
}

.now-playing {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}

.album-art {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    margin-right: 20px;
}

.track-info {
    flex: 1;
}

.track-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
}

.artist-name {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 10px;
}

.progress-container {
    margin-bottom: 20px;
}

.progress-bar {
    height: 6px;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    cursor: pointer;
    margin-bottom: 5px;
}

.progress {
    height: 100%;
    background: #fff;
    border-radius: 3px;
    width: 0%;
    transition: width 0.1s linear;
}

.time-info {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
}

.controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
}

.control-button {
    background: none;
    border: none;
    color: #fff;
    font-size: 18px;
    margin: 0 15px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.control-button:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.play-button {
    background-color: #fff;
    color: #6b5dff;
    width: 50px;
    height: 50px;
    font-size: 24px;
}

.play-button:hover {
    transform: scale(1.05);
}

.equalizer {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    height: 40px;
    margin: 15px 0;
}

.equalizer-bar {
    width: 4px;
    margin: 0 2px;
    background: #fff;
    border-radius: 2px;
    animation: equalize 1.5s infinite ease-in-out;
}

.equalizer-bar:nth-child(1) { height: 20%; animation-delay: 0.1s; }
.equalizer-bar:nth-child(2) { height: 50%; animation-delay: 0.3s; }
.equalizer-bar:nth-child(3) { height: 30%; animation-delay: 0.5s; }
.equalizer-bar:nth-child(4) { height: 70%; animation-delay: 0.2s; }
.equalizer-bar:nth-child(5) { height: 40%; animation-delay: 0.4s; }

@keyframes equalize {
    0%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(0.5); }
}

.volume-container {
    display: flex;
    align-items: center;
    margin-top: 10px;
}

.volume-icon {
    margin-right: 10px;
    color: rgba(255, 255, 255, 0.8);
}

.volume-slider {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    cursor: pointer;
}

.volume-progress {
    height: 100%;
    background: #fff;
    border-radius: 2px;
    width: 70%;
}
