/* =========================
   RESET & GLOBAL
========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #0f172a;
    color: #f1f5f9;
}

a {
    text-decoration: none;
}

/* =========================
   NAVBAR
========================= */

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background: #0b1220;
    border-bottom: 1px solid gold;
}

.logo img {
    height: 50px;
    width: auto;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 25px;
}

.nav-links a {
    color: gold;
    font-weight: bold;
    transition: 0.3s;
}

.nav-links a:hover {
    color: white;
}

.menu-toggle {
    display: none;
    font-size: 26px;
    cursor: pointer;
    color: gold;
}

/* =========================
   LAYOUT
========================= */

.container {
    display: flex;
    min-height: 100vh;
}

/* =========================
   SIDEBAR
========================= */

.sidebar {
    width: 300px;
    background: #0b1220;
    padding: 20px;
    border-right: 1px solid gold;
    transition: 0.3s;
}

.sidebar h2 {
    margin-bottom: 15px;
    color: gold;
}

/* =========================
   PLAYLIST
========================= */

#playlist {
    list-style: none;
    max-height: 150px; /* approx 5 songs visible */
    overflow-y: auto;
    margin-bottom: 20px;
    font-size: 14px;
}

#playlist li {
    padding: 6px 8px;
    cursor: pointer;
    border-radius: 6px;
    transition: 0.2s;
}

#playlist li:hover {
    background: rgba(255, 215, 0, 0.2);
}

#playlist li.active {
    background: gold;
    color: black;
    font-weight: bold;
}

/* Scrollbar */
#playlist::-webkit-scrollbar {
    width: 6px;
}

#playlist::-webkit-scrollbar-thumb {
    background: gold;
    border-radius: 5px;
}

/* =========================
   GLASS PANEL
========================= */

.glass-panel {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 15px;
    padding: 15px;
}

/* =========================
   TIMELINE
========================= */

.timeline-container {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 12px;
    color: gold;
}

#progressBar {
    flex: 1;
    cursor: pointer;
    accent-color: gold;
}

/* =========================
   PLAYER CONTROLS
========================= */

.controls {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.controls button {
    background: black;
    border: 1px solid gold;
    color: gold;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
}

.controls button:hover {
    background: gold;
    color: black;
}

.player-extra-controls {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.player-extra-controls button {
    flex: 1;
    margin: 0 4px;
    background: black;
    border: 1px solid gold;
    color: gold;
    padding: 6px;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
    font-size: 13px;
}

.player-extra-controls button:hover {
    background: gold;
    color: black;
    font-weight: bold;
}

.active-btn {
    background: gold !important;
    color: black !important;
}

/* =========================
   VOLUME
========================= */

.volume-control {
    margin-bottom: 10px;
}

#volumeSlider {
    width: 100%;
    cursor: pointer;
    accent-color: gold;
}

/* =========================
   VISUALIZER
========================= */

#visualizer {
    width: 100%;
    height: 60px;
    margin-top: 5px;
}

/* =========================
   MAIN CONTENT
========================= */

.content {
    flex: 1;
    padding: 40px;
}

.content h1 {
    color: gold;
    margin-bottom: 20px;
}

/* =========================
   LIBRARY PAGE
========================= */

.library-list ul {
    list-style: none;
}

.library-list li {
    padding: 10px;
    margin-bottom: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid gold;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
}

.library-list li:hover {
    background: gold;
    color: black;
}

/* =========================
   CONTACT PAGE
========================= */

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 500px;
    margin-top: 20px;
}

.contact-form input,
.contact-form textarea {
    padding: 10px;
    border-radius: 8px;
    border: 1px solid gold;
    background: rgba(0,0,0,0.4);
    color: #f1f5f9;
}

.contact-form textarea {
    resize: none;
}

.contact-form button {
    padding: 10px;
    border-radius: 8px;
    border: 1px solid gold;
    background: gold;
    color: black;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.contact-form button:hover {
    background: black;
    color: gold;
}

.success-msg {
    color: gold;
    font-weight: bold;
    margin-bottom: 15px;
}

.error-msg {
    color: red;
    margin-bottom: 15px;
}

/* =========================
   MOBILE RESPONSIVE
========================= */

@media (max-width: 900px) {

    .container {
        flex-direction: column;
    }

    .sidebar {
        position: fixed;
        left: -100%;
        top: 0;
        height: 100%;
        z-index: 999;
    }

    .sidebar.active {
        left: 0;
    }

    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
    }
}