:root {
    --player-color-primary: #242628;
    --player-color-white: #ffffff;
    --player-secondary-color: #ffee34;
    --player-accent-color: #85E9E1;

}

.audio-player-popup {
    display: none;
    position: fixed;
    height: auto;
    left: 0;
    right: 0;
    bottom: 2rem;
    z-index: 9;
}

.single-audio-player {
    /* Overall player appearance: dark background, rounded corners */
    background-color: var(--player-color-primary); /*  A dark gray, adjust as needed */
    color: var(--player-color-white); /* White text */
    border-radius: 0.5rem; /*  Rounded corners */
    padding: 1rem; /* Spacing around the controls */
    width: 84%; /* Adjust width as needed */
    max-width: 60rem;
    margin: 0 auto; /* Center the player */
}

.player-controls {
    display: grid; /*  Layout the controls vertically */
}

#play-pause {
    /* Style the play/pause button: circular, background color */
    color: var(--player-secondary-color);
    width: 40px;
    height: 40px;
    font-size: 1.5em;
    cursor: pointer;
    margin: 0 auto;
    background: none;
    box-shadow: none;
    border: none;
}

.timeline {
    /* Style the timeline: background color, rounded corners */
    margin: 1em 0; /* Spacing on the sides */
    display: flex;
    align-items: center;
}

.undertimeline {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#seek-slider {
    /* Style the slider: remove default appearance, custom thumb */
    -webkit-appearance: none;
    width: 100%;
    height: 4px;
    background: var(--player-secondary-color);
    border-radius: 4px;
    outline: none;
    position: relative;
    border: none;
    padding: 0;
    margin: 0;
    transition: all 0.3s;
}

/*  Styling the slider thumb (the draggable part) is complex and browser-specific */
#seek-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px; /* Thumb width */
    height: 18px; /* Thumb height */
    background: var(--player-secondary-color); /* Yellow thumb */
    border-radius: 50%;
    cursor: pointer;
    z-index: 99;
    position: relative;
}
#seek-slider::-moz-range-thumb { /* Firefox */
    z-index: 99;
}
#seek-slider::-ms-thumb { /* IE/Edge */
    z-index: 99;
}

#seek-slider::before {
    content: ''; 
    position: absolute;
    top: 0;
    left: 0;
    height: 100%; 
    background-color: var(--player-accent-color); 
    border-radius: 4px;
    z-index: 1; 
    width: var(--played-width, 0%); /* Use the custom property, default to 0% */
}

html[dir="rtl"] #seek-slider::before {
    left: auto;
    right: 0;
}
  
/* Add similar styles for other browsers if needed: */
#seek-slider::-moz-progress-bar { /* Firefox */
    background-color: var(--player-accent-color); 
}
#seek-slider::-ms-fill { /* IE/Edge */
    background-color: var(--player-accent-color); 
}

/* Add similar thumb styling for Firefox (::-moz-range-thumb) and IE/Edge (::-ms-thumb) */

#current-time, #duration {
    font-size: 1.2em;
    color: var(--player-color-white);
    font-family: "Montserrat", Sans-serif;
}

.track-title {
    font-size: 1em;
    font-family: "Playfair Display", Sans-serif;
    font-weight: bold;
    white-space: nowrap; /* Prevent text from wrapping */
    overflow: hidden;       /* Hide overflowing text */
    text-overflow: ellipsis; /* Add "..." for overflow */
}