.active {
    transform: translateY(-2px);
    animation: scaleAnimation 4s infinite;
}

/* Kluczowe klatki animacji przewijania tekstu */
@keyframes scaleAnimation {
    0% {
        transform: scale(1);
        background-color: #c82333;
    }
    50% {
        transform: scale(0.8);
        background-color: #c82333;
    }
    100% {
        transform: scale(1);
        background-color: #c82333;
    }
}

body {
    font-family: 'Montserrat', sans-serif;
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
}

.container {
    font-family: 'Montserrat', sans-serif;
    max-width: 700px;
    width: 100%;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    margin: 0 auto;
    box-sizing: border-box; /* Uwzględnia padding w szerokości */
}

/* Style dla nagłówka */
header {
    font-family: 'Montserrat', sans-serif;
    background: #f9f9f9; /* Jasne tło nagłówka */
    color: #333; /* Ciemny kolor tekstu */
    padding: 15px 30px; /* Odpowiednie odstępy wewnętrzne */
    display: flex;
    justify-content: space-between; /* Rozmieszczenie elementów po bokach */
    align-items: center;
    border-bottom: 1px solid #ddd; /* Delikatna szara dolna ramka */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Subtelny cień */
    margin-bottom: 20px; /* Odstęp u dołu nagłówka */
}

header h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 24px; /* Rozmiar czcionki */
    font-weight: 600; /* Średnie pogrubienie */
    margin: 0; /* Usuń margines */
    color: #333; /* Ciemny kolor tekstu */
}

/* Stylizacja sekcji informacji o użytkowniku */
#user-info {
    display: flex;
    align-items: center;
    position: relative; /* Ważne dla pozycjonowania menu rozwijanego */
}

/* Stylizacja przycisku użytkownika */
#user-button {
    background-color: #f1f1f1;
    box-shadow: 0 2px 1px rgba(0, 0, 0, 0.1);
    border: none;
    color: #333;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 10px 15px;
    border-radius: 5px;
    transition: background-color 0.3s, box-shadow 0.3s;
    position: relative; /* Ważne dla menu rozwijanego */
}

#user-button:hover {
    background-color: #f1f1f1;
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.1);
}

/* Stylizacja nazwy użytkownika */
#username {
    font-size: 13px; /* Rozmiar czcionki */
    font-weight: 600; /* Pogrubienie */
    color: #007bff; /* Kolor powitania */
}

/* Stylizacja strzałki w dół */
.arrow {
    margin-left: 8px;
}

/* Stylizacja rozwijanego menu */
.dropdown-menu {
    font-size: 13px;
    display: none; /* Ukryte domyślnie */
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #fff;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 10px;
    z-index: 1000;
    min-width: 150px; /* Minimalna szerokość dla menu */
}

/* Stylizacja przycisku wylogowania */
#dropdown-menu button {
    background: none;
    border: none;
    padding: 10px;
    width: 100%;
    text-align: left;
    color: #dc3545; /* Kolor przycisku wylogowania */
    cursor: pointer;
    font-size: 14px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

#dropdown-menu button:hover {
    background-color: #f1f1f1;
}

/* Stylizacja dla widoku mobilnego */
@media (max-width: 768px) {
    #user-info {
        flex-direction: column;
        align-items: flex-start;
    }

    #dropdown-menu {
        width: 100%; /* Menu na pełnej szerokości */
        box-shadow: none; /* Brak cienia dla prostszej wersji mobilnej */
    }
}



form {
    font-family: 'Montserrat', sans-serif;
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

input[type="text"],
input[type="email"],
input[type="password"] {
    font-family: 'Montserrat', sans-serif;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
}

button {
    font-family: 'Montserrat', sans-serif;
    padding: 10px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    color: #fff;
    background-color: #007bff;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #0056b3;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group h2 {
    margin: 0 0 15px 0; /* Dodanie marginesu dolnego */
    font-size: 20px;
    color: #555;
}



/* Stylizacja formularza wyszukiwania */
#search-form {
    display: flex;
    align-items: center; /* Wyrównaj elementy formularza w pionie */
    gap: 10px; /* Odstęp między polem tekstowym a przyciskiem */
}

/* Stylizacja pola tekstowego */
#search-query {
    padding: 10px;
    max-width: 120px;
    border: 2px solid #007bff; /* Zwiększenie widoczności */
    border-radius: 4px;
    font-size: 16px;
    outline: none;
    box-shadow: 0 0 5px rgba(0,123,255,0.5);
}

/* Stylizacja przycisku wyszukiwania */
#search-button {
    padding: 10px 20px;
    font-size: 16px;
    color: #fff;
    background-color: #007bff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#search-button:hover {
    background-color: #0056b3;
}

/* Responsywność */
@media (max-width: 120px) {
    #controls-container {
        flex-direction: column; /* Ułóż elementy w kolumnie na mniejszych ekranach */
        align-items: flex-start; /* Wyrównaj elementy do lewej */
    }

    #search-form {
        width: 100%; /* Formularz wyszukiwania zajmuje całą szerokość */
    }

    #controls {
        width: 100%; /* Kontrolki zajmują całą szerokość */
        justify-content: space-between; /* Rozstaw kontrolki na całą szerokość */
    }
}

#player {
    display: none;
}

/* Kontener dla wyszukiwarki i przycisków */
#controls-container {
    display: flex; /* Użyj flexboxa dla kontenera */
    justify-content: space-between; /* Rozstaw elementy na całej dostępnej szerokości */
    align-items: center; /* Wyrównaj elementy w pionie */
    gap: 10px; /* Odstęp między elementami */
    margin-bottom: 10px; /* Odstęp u dołu kontenera */
}

#controls {
    display: flex; /* Użyj flexboxa dla przycisków */
    gap: 10px; /* Odstęp między przyciskami */
}

#player-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

#seek-bar {
    width: 100%;
    height: 5px;
    background-color: #ccc;
    border-radius: 4px;
    -webkit-appearance: none;
}

#seek-bar::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 15px;
    height: 15px;
    background-color: #007bff;
    border-radius: 50%;
    cursor: pointer;
}

#current-time,
#duration {
    font-size: 14px;
    color: #555;
}

/* Stylizacja nagłówka sekcji */
h2 {
    margin: 0 0 6px 0; /* Dodaj dolny margines, aby oddzielić nagłówek od kafelków */
    padding: 12px;
    font-size: 18px;
    font-weight: 700;
    color: #333;
    border-bottom: 1px solid #ddd; /* Stylizacja linii pod nagłówkiem */
    text-align: left; /* Wyśrodkowanie tekstu */
}

/* Stylizacja listy wyników i ulubionych utworów */
#results,
#favorites {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    padding: 15px;
}

/* Stylizacja elementów listy jako kafelki */
#results div,
#favorites div {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-radius: 12px;
    background-color: #f9f9f9;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    overflow: hidden;
}

/* Efekt hover dla kafelków */
#results div:hover,
#favorites div:hover {
    transform: translateY(-5px);
}

/* Stylizacja tytułu i artysty */
#results div h3,
#favorites div h3 {
    display: flex;
    align-items: center;
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    text-align: center;
    position: relative;
}

/* Stylizacja przycisków */
#results div button,
#favorites div button {
    padding: 8px 12px;
    font-size: 14px;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
    margin-top: 10px;
}

/* Przyciski "Lubię to" */
#results div button {
    background-color: #007bff;
}

/* Efekt hover dla przycisku "Lubię to" */
#results div button:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

/* Przyciski "Usuń" */
#favorites div button {
    background-color: #842ff3;
}

/* Efekt hover dla przycisku "Usuń" */
#favorites div button:hover {
    transform: translateY(-2px);
}

/* Dodatkowe informacje i ikony */
#results div .info,
#favorites div .info {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #555;
}

/* Responsywność */
@media (max-width: 768px) {
    #results,
    #favorites {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media (max-width: 480px) {
    #results,
    #favorites {
        grid-template-columns: 1fr;
    }
}


/* Style dla okładki albumu */
.cover-image {
    width: 120px; /* Większa szerokość */
    height: 120px; /* Większa wysokość */
    border-radius: 50%; /* Okrągły kształt */
    border: 2px solid #007bff; /* Stylowa ramka */
    object-fit: cover; /* Dopasowanie obrazka */
    transition: transform 1s ease-in-out;
}

.cover-image.rotating {
    animation: rotate 2s linear infinite;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Stylizacja sekcji teraz odtwarzana */
#now-playing {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    background-color: #f9f9f9; /* Jasne tło */
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 0 5px rgba(0,0,0,0.1);
}

#track-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#artist {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

#title {
    font-size: 16px;
    color: #555;
}

/* Stylizacja linku do przypomnienia hasła */
#forgot-password-link,#register-link,#login-link{
    display: block;
    margin-top: 10px;
    text-align: right;
    font-size: 14px;
    color: #007bff;
    cursor: pointer;
}

#forgot-password-link,#register-link,#login-link:hover {
    text-decoration: underline;
}


/* Responsive Styles */
@media (max-width: 600px) {
    body {
        padding: 10px;
    }

    .container {
        padding: 15px;
        max-width: 100%; /* Ustawienie maksymalnej szerokości na 100% */
    }

    header h1 {
        font-size: 20px;
    }

    form {
        gap: 10px;
    }

    input[type="text"],
    input[type="password"],
    #search-query {
        font-size: 14px;
    }

    button,
    #search-form button {
        padding: 8px 15px;
        font-size: 14px;
    }

    #controls,
    #player-controls {
        gap: 5px;
    }

    #results div,
    #favorites div {
        padding: 8px;
    }

    #results div button,
    #favorites div button {
        padding: 5px 8px;
        font-size: 12px;
    }
}


