* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #121212;
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.player-container {
    background-color: #1e1e1e;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    width: 350px;
    max-width: 90%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.header {
    margin-bottom: 20px;
}

select {
    width: 100%;
    padding: 10px;
    background-color: #2c2c2c;
    color: white;
    border: 1px solid #1db954;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    outline: none;
    text-align: center;
}

.cover-wrapper {
    width: 100%;
    aspect-ratio: 1/1;

    background-image: url('/no.png'); 
    background-size: cover;
    background-position: center;
    background-color: #282828; 
}

#cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#cover-img[src=""], 
#cover-img:not([src]) {
    opacity: 0; 
}
.info {
    margin-bottom: 20px;
}

#title {
    font-size: 1.3rem;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#artist {
    font-size: 0.9rem;
    color: #b3b3b3;
}

.progress-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 0.8rem;
    color: #b3b3b3;
}

#progress-bar {
    flex-grow: 1;
}

.playback-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.icon-btn {
    background: none;
    border: none;
    color: #b3b3b3;
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s;
}

.icon-btn:hover {
    color: #ffffff;
}

.play-btn {
    background-color: #1db954;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.2s, background-color 0.2s;
}

.play-btn:hover {
    background-color: #1ed760;
    transform: scale(1.05);
    color: white;
}

.volume-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.vol-icon {
    font-size: 1.2rem;
    color: #b3b3b3;
}

#prev-btn, #next-btn {
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}
#prev-btn:hover, #next-btn:hover {
    color: #ffffff; 
}

.secondary-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    gap: 15px;
}

#download-btn {
    font-size: 1.3rem;
    padding-right: 15px;
    border-right: 1px solid #535353;
}

.volume-container {
    flex-grow: 1;
}


input[type=range] {
    -webkit-appearance: none;
    width: 100%;
    background: transparent;
}

input[type=range]:focus {
    outline: none;
}

input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 5px;
    cursor: pointer;
    background: #535353;
    border-radius: 5px;
}

input[type=range]::-webkit-slider-thumb {
    height: 15px;
    width: 15px;
    border-radius: 50%;
    background: #1db954;
    cursor: pointer;
    -webkit-appearance: none;
    margin-top: -5px;
}

input[type=range]::-webkit-slider-thumb:hover {
    background: #1ed760;
}

.site-footer {
    position: fixed; 
    bottom: 15px;    
    left: 0;
    width: 100%;     
    text-align: center;
    color: #888888;  
    font-size: 0.85rem;
    font-family: sans-serif;
    z-index: 10;     
}

.site-footer p {
    margin: 0;       
}