/* Sidebar container - pinned to middle-left */
.music-sidebar {
    position: fixed;
    top: 10%;
    left: 0;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    z-index: 9999;
}

/* Slide-out effect: Hide the main content by default */
.music-sidebar .player-content {
    width: 0;
    overflow: hidden;
    background-color: #1a1a1a;
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
    box-shadow: 5px 0 15px rgba(0,0,0,0.5);
    transition: width 0.4s ease-in-out;
    white-space: nowrap;
    height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0;
}

/* Reveal content on hover (desktop) or tap (mobile) */
.music-sidebar:hover .player-content,
.music-sidebar:active .player-content {
    width: 340px;
    padding: 0 20px;
}

/* Handle to grab/hover the player */
.sidebar-handle {
    background-color: #1a1a1a;
    color: #fff;
    padding: 5px 5px;
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
    cursor: pointer;
    font-size: 5px;
    box-shadow: 2px 0 5px rgba(0,0,0,0.3);
}

/* Dark Theme typography and elements */
.track-title {
    color: #ffffff;
    margin: 0 0 5px 0;
    font-size: 6px;
    font-family: sans-serif;
}

.artist-name {
    color: #b3b3b3;
    margin: 0 0 10px 0;
    font-size: 6px;
    font-family: sans-serif;
}

/* Force dark filter on default HTML5 audio controls */
.audio-element {
    filter: invert(0.9); /* Makes the native bright controls dark */
    width: 210px;
}

/* Mobile-Friendly Adjustments */
@media (max-width: 768px) {
    .music-sidebar {
        top: 60%; /* Slightly lower on mobile so it doesn't cover your menu */
    }
    .music-sidebar:hover .player-content {
        width: 240px;
    }
    .audio-element {
        width: 160px;
    }
}
/* At the very bottom of your external styles.css file */
html {
  opacity: 1;
}
