/* --- PLAYLIST UI STYLES --- */

/* Pojedynczy kafelek listy */
.playlist-item {
    background: rgba(0, 0, 0, 0.1); /* Bardziej przezroczyste tło */
    backdrop-filter: blur(20px); /* Mocniejsze rozmycie tła pod spodem */
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 6px 15px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    height : 55px;
    min-width: 149px;
}

.playlist-item:hover {
    background: rgba(48, 135, 255, 0.1);
    border-color: rgba(48, 135, 255, 0.4);
}

/* Wyróżnienie aktywnego kafelka (LIVE) */
.playlist-item-active {
    background: rgba(48, 135, 255, 0.18);
    border: 1px solid rgba(48, 135, 255, 0.25);
}

.playlist-item-active:hover {
    background: rgba(48, 135, 255, 0.12);
}

/* Wspólna klasa dla buttonów i badge'y z prawej strony */
.playlist-action-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 5px;
    font-weight: bold;
    text-transform: uppercase;
    transition: all 0.3s ease;
    width: 100px;
    height: 36px;
    margin-right : 20px;
}

/* Stan: AKTYWNA */
.playlist-badge-active {
    background: rgba(48, 135, 255, 0.15);
    border: 1px solid rgba(48, 135, 255, 0.3);
    color: #3087ff; 
    border-radius: 5px;
    height: 36px;
    border-bottom: 2px solid rgba(48, 135, 255, 0.9); 
    margin-right : 20px;
    width: 100px;
}

/* Stan: WŁĄCZ (Button) */
.playlist-btn-inactive {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
   width: 100px !important;
   border-radius: 5px;
   height: 36px;
   margin-bottom: 8px;
   border-bottom: 2px solid rgba(255, 255, 255, 0.3); 
   margin-right : 20px !important; 
}
.playlist-btn-inactive:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
}

/* Kropeczki statusu */
.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
}

.status-dot-active {
    background-color: #3087ff;
    box-shadow: 0 0 5px rgba(48, 135, 255, 0.6); /* Delikatny glow */
}

.status-dot-inactive {
    background-color: rgba(255, 255, 255, 0.3);
}






/* --- CUSTOM SCROLLBAR DLA LIST --- */

/* Firefox */
.playlist-scroll-container {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

/* WebKit (Chrome, Edge, Safari) */
.playlist-scroll-container::-webkit-scrollbar {
    width: 6px; /* Wąziutki pasek */
}

.playlist-scroll-container::-webkit-scrollbar-track {
    background: transparent; /* Niewidoczne tło paska */
}

.playlist-scroll-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15); /* Półprzezroczysty suwak */
    border-radius: 10px; /* Zaokrąglone końce */
}

.playlist-scroll-container::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3); /* Delikatne podświetlenie po najechaniu myszką */
}









/* --- MODAL DODAWANIA/EDYCJI PLAYLISTY --- */

/* Tło modala (zaciemnienie) */
.playlist-modal-overlay {
    position: fixed; 
    top: 0; left: 0; width: 100vw; height: 100vh; 
    background: rgba(0,0,0,0.8); 
    z-index: 10000; 
    display: flex; justify-content: center; align-items: center; 
    opacity: 0; 
    transition: opacity 0.3s ease;
}

/* Główne okno modala */
.playlist-modal-container {
    width: 90%; 
    max-width: 500px; 
    background: rgba(20,20,25,0.7); 
    backdrop-filter: blur(25px); -webkit-backdrop-filter: blur(25px); 
    border: 1px solid rgba(255,255,255,0.1); 
    border-radius: 12px; 
    padding: 25px; 
    box-shadow: 0 10px 40px rgba(0,0,0,0.8);
}

/* Nagłówek modala */
.playlist-modal-header {
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    margin-bottom: 20px;
}

.playlist-modal-title {
    margin: 0; 
    color: #3087ff; 
    font-size: 18px; 
    text-transform: uppercase;
}

/* Labelki nad polami */
.playlist-modal-label {
    margin-bottom: 10px; 
    color: rgba(255,255,255,0.6); 
    font-size: 12px;
}

             /* Przyciski wyboru czasu (godziny/minuty) */
.playlist-time-btn {
    min-width: 38px; /* Jeszcze węższe, żeby więcej weszło na ekran */
    height: 40px; 
    background: rgba(255, 255, 255, 0.05); 
    border: 1px solid transparent; 
    color: rgba(255, 255, 255, 0.7); 
    border-radius: 8px; 
    font-weight: bold; 
    font-size: 14px; /* Minimalnie mniejsza czcionka do węższego przycisku */
    cursor: pointer; 
    transition: all 0.2s ease;
    
    /* IDEALNE CENTROWANIE I RESET */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 !important;
    margin: 0 !important; /* <--- TO JEST KLUCZOWE: zabija domyślne marginesy z innych skryptów */
}

.playlist-time-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.playlist-time-btn.active {
    background: rgba(48, 135, 255, 0.15); 
    border: 1px solid rgba(48, 135, 255, 0.5);
    color: #3087ff;
}

/* Przycisk ZAPISZ - Styl zgodny z kafelkiem AKTYWNA */
.playlist-save-btn {
    background: rgba(48, 135, 255, 0.15); 
    border: 1px solid rgba(48, 135, 255, 0.5); 
    color: #3087ff; 
    padding: 10px 35px; 
    border-radius: 8px; /* Bardziej zaokrąglony, elegancki kształt */
    font-weight: bold; 
    font-size: 13px; 
    letter-spacing: 1px; /* Dodaje powagi napisowi */
    cursor: pointer; 
    transition: all 0.3s ease;
}

.playlist-save-btn:hover {
    background: rgba(48, 135, 255, 0.3);
    border-color: #3087ff;
    color: #fff;
}
 

/* Pole wyszukiwarki kanałów */
.playlist-search-input {
    width: 100%; 
    box-sizing: border-box; 
    background: rgba(0,0,0,0.5); 
    border: 1px solid rgba(255,255,255,0.2); 
    color: #fff; 
    padding: 12px 15px; 
    border-radius: 8px; 
    font-size: 14px; 
    outline: none;
    transition: border-color 0.3s;
}

.playlist-search-input:focus {
    border-color: #3087ff;
}


/* Kontener na button zapisu */
.playlist-modal-footer {
    margin-top: 30px; 
    text-align: right;
}

/* Przycisk zamykania / chowania panelu */
    .GlassCloseBtnNoHide {
        position: absolute;
        top: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: rgba(255,255,255,0.05);
        border: 1px solid rgba(255,255,255,0.1);
        color: #abc;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.3s ease;
        z-index: 10;
        outline: none;
    }
    .GlassCloseBtnNoHide:hover {
        background: rgba(255,107,107,0.2);
        color: #ff6b6b;
        border-color: rgba(255,107,107,0.4);
        transform: rotate(90deg);
    }