/* style.css for Harmony Player */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    background: #0f111a;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.player-container {
    display: flex;
    flex-direction: row;
    background: #1a1d2b;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    width: 90%;
    max-width: 1200px;
    height: auto;
    min-height: 500px;
}

/* Main Player Section */
.player-main {
    flex: 2;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: #212437;
    margin: 10px,10px,10px,10px;
    border-radius: 16px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.album-art {
    text-align: center;
}

.album-image {
    width: 200px;
    height: 200px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.song-title {
    text-align: center;
    font-size: 22px;
    margin: 20px 0 5px;
    font-weight: 600;
}

.song-artist {
    text-align: center;
    font-size: 16px;
    color: #ccc;
}

.progress-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 20px 0;
}

.progress-bar {
    flex: 1;
    appearance: none;
    height: 4px;
    background: #555;
    border-radius: 10px;
    outline: none;
    cursor: pointer;
}

.progress-bar::-webkit-slider-thumb {
    appearance: none;
    height: 14px;
    width: 14px;
    background: #00abf0;
    border-radius: 50%;
    cursor: pointer;
    margin-top: -5px;
}

.controls,
.top-controls,
.bottom-controls,
.extra-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin: 10px 0;
    flex-wrap: wrap;
}

.controls button.active {
    color: #00abf0; /
}


.btn {
    background: #2b2f42;
    border: none;
    color: white;
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.btn:hover {
    background: #00abf0;
    transform: scale(1.1);
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    margin-top: 10px;
}

.volume-control input[type='range'] {
    width: 100px;
}

/* Playlist Sidebar */
.playlist-sidebar {
    flex: 1;
    background: #181b2b;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.playlist-header {
    margin-bottom: 16px;
    border-radius: 16px;
    box-shadow: 0  2px rgba(10, 255, 145, 0.45);
  
    
}

.search-box {
    width: 100%;
    padding: 8px;
    border-radius: 8px;
    border: none;
    background: #2b2f42;
    color: white;
    margin-bottom: 10px;
}

.playlist-items {
    overflow-y: auto;
    flex-grow: 1;
    background: #202437;
    border-radius: 10px;
    padding: 10px;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.3);
}

/* Scrollbar Styling */
.playlist-items::-webkit-scrollbar {
    width: 6px;
}

.playlist-items::-webkit-scrollbar-thumb {
    background-color: #00abf0;
    border-radius: 10px;
}

/* Extra Buttons Styling */
.extra-controls .btn {
    background: #344056;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 14px;
}

.extra-controls .btn:hover {
    background: #00abf0;
    color: black;
}

/* Responsive - Playlist at Bottom */
@media screen and (max-width: 900px) {
    body {
        padding: 20px 0;
        align-items: flex-start;
    }

    .player-container {
        flex-direction: column;
        height: auto;
    }

    .playlist-sidebar {
        order: 2;
        width: 100%;
        height: 250px;
    }

    .player-main {
        order: 1;
        width: 100%;
        padding: 20px;
    }
}

.playlist-sidebar .playlist-items {
    max-height: 200px;
    overflow-y: auto;
}

