:root {
    --bg-color: #0d0d0d;
    --card-bg: #141414;
    --text-main: #ffffff;
    --text-muted: #888888;
    --accent-color: #ffffff;
    --border-color: #222222;
    --hover-bg: #1c1c1c;
}

/* Konteineri Kryesor */
.player-container {
    display: flex;
    width: 100%;
    max-width: 900px;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Pjesa e majtë (Player + Playlist) */
.player-left {
    flex: 1;
    padding: 30px;
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    /* SHIKO KËTU: Shto këtë */
    position: relative; 
    overflow: hidden; /* Siguron që blur-i mos të dalë jashtë */
}

/* Stilimi i sfondit me cover */
.player-bg-cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Imazhi default ose një ngjyrë e errët para se të ngarkohet kenga */
    background-color: #1a1a1a; 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    
    /* SHIKO KËTU: Opaciteti dhe Blur-i */
    opacity: 0.75; /* Opacitet i ulët (15%), rregulloje sipas dëshirës */
    filter: blur(7px); /* I jep një efekt mjegullimi të bukur */
    
    /* Tranzicion i butë kur ndryshon cover-i */
    transition: background-image 0.5s ease-in-out;
    z-index: 1; /* Rri pas përmbajtjes */
}

.player-content-wrapper {
    position: relative;
    z-index: 2; /* Më i lartë se z-index i .player-bg-cover */
    display: flex;
    flex-direction: column;
    height: 100%;
}

.current-track-info h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.current-track-info p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 25px;
}

/* Kontrollet */
.controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.ctrl-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.2s ease;
}

.ctrl-btn:hover {
    color: var(--text-main);
}

.ctrl-btn.play-main {
    font-size: 1.5rem;
    color: var(--text-main);
    background-color: #222;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background 0.2s;
}

.ctrl-btn.play-main:hover {
    background-color: #333;
}

/* Progress Bar */
.progress-container {
    background-color: #222;
    border-radius: 4px;
    cursor: pointer;
    height: 4px;
    width: 100%;
    margin-bottom: 8px;
    position: relative;
}

.progress-bar {
    background-color: var(--accent-color);
    border-radius: 4px;
    height: 100%;
    width: 0%;
    transition: width 0.1s linear;
}

.time-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

/* Playlist */
.playlist h3 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    color: var(--text-muted);
}

.playlist ul {
    list-style: none;
    max-height: 200px;
    overflow-y: auto;
}

.playlist li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 10px;
    border-radius: 6px;
    cursor: pointer;
    margin-bottom: 5px;
    transition: background 0.2s;
    font-size: 0.95rem;
}

.playlist li:hover {
    background-color: var(--hover-bg);
}

.playlist li.active {
    background-color: #202020;
    font-weight: 600;
}

.playlist li .track-duration {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Pjesa e djathtë (Lirikat) */
.player-right {
    flex: 1;
    padding: 30px;
    background-color: #0f0f0f;
    display: flex;
    flex-direction: column;
}

.player-right h3 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.lyrics-container {
    flex: 1;
    overflow-y: auto;
    max-height: 380px;
    font-size: 1rem;
    line-height: 1.7;
    color: #ccc;
    white-space: pre-line; /* Ruan ndarjet e rreshtave siç janë në tekst */
    padding-right: 10px;
}

.empty-lyrics {
    color: var(--text-muted);
    font-style: italic;
    text-align: center;
    margin-top: 40px;
}

/* Rregullimi i scrollbar-it për playlistën dhe lirikat */
::-webkit-scrollbar {
    width: 4px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 2px;
}
::-webkit-scrollbar-thumb:hover {
    background: #555;
}

#playlist-tracks {
	padding-left: 0;
}

/* Përshtatja për pajisjet mobile */
@media (max-width: 768px) {
    .player-container {
        flex-direction: column;
    }
    .player-left {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
}

