body {
    font-family: 'Roboto', sans-serif;
    background-color: #000000;
    color: #fff;
    margin: 0;
    padding: 0;
    padding-bottom: 90px; /* spazio per la player bar fissa */
    /* Rimuove entrambe le barre di scorrimento */
    height: auto;
    /* Permette al contenuto di adattarsi all'altezza */
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    scroll-behavior: smooth;
    /* Aggiunge uno scorrimento fluido */
    overflow-x: hidden;
    /* Blocca lo scroll orizzontale */
    overflow-y: auto;
    /* Consente lo scroll verticale */
    scrollbar-width: none;
    /* Nasconde la scrollbar in Firefox */
    -ms-overflow-style: none;
    /* Nasconde la scrollbar in IE/Edge */
    width: 100%;
    min-height: 100vh;
    /* Cambiato da height a min-height per permettere il contenuto di espandersi */
    position: relative;
    /* Necessario per posizionare gli elementi figli */


}

body.dark-theme {
    background-color: #121212;
    color: #fff;
}

body.light-theme {
    background-color: #fff;
    color: #000;
}

header {
    background-color: transparent;
    padding: 20px;
    text-align: center;
    width: 100%;
    position: relative;
}

header h1 {
    margin: 0;
    font-size: 3em;
    color: #fff;
}

/* ========== USER PROFILE DROPDOWN ========== */
.user-profile-container {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 100;
}

.user-profile {
    position: relative;
}

.user-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, #062e78 0%, #207efa 100%);
    color: #000;
    font-weight: 700;
    font-size: 1.2em;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(29, 185, 84, 0.3);
}

.user-avatar:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(29, 185, 84, 0.4);
}

.user-menu {
    position: absolute;
    top: 60px;
    right: 0;
    background: #282828;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    min-width: 200px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 101;
}

.user-profile:hover .user-menu,
.user-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-menu-header {
    padding: 15px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.user-menu-header p {
    margin: 0;
    color: #fff;
    font-weight: 600;
    font-size: 0.95em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-menu-logout {
    width: 100%;
    padding: 12px 15px;
    background: none;
    border: none;
    color: #b3b3b3;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.95em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-menu-logout:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.user-menu-logout i {
    font-size: 1em;
}

.nav {
    text-align: center;
    margin-top: 20px;
    width: 100%;
}

.nav a {
    color: #fff;
    text-decoration: none;
    margin: 0 20px;
    font-weight: bold;
    font-size: 1.2em;
}

.nav a:hover {
    text-decoration: underline;
}

.discover-section {
    padding: 0 20px 30px 20px;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    transition: margin-top 0.3s;
    margin-top: 0;
    /* Elimina lo spazio sopra il testo "Scopri nuova musica" */
    padding-bottom: 120px;
    /* Aggiunge spazio in fondo per la playbar */
    overflow-y: visible;
    /* Rimuove il controllo scroll dal container */
}

.discover-section.hidden {
    margin-top: 50px;
    /* Aumenta lo spazio quando si effettua una ricerca */
}

.discover-section::-webkit-scrollbar {
    display: none;
}

.discover-section h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
}

.album-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    /* Adatta dinamicamente le colonne */
    gap: 20px;
    margin-top: 30px;
    width: 90%;
    /* Ridimensiona per schermi più piccoli */
    margin: 30px auto;
}

/* Modifica lo stile delle card */
.album-card {
    background-color: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.album-card:hover {
    transform: scale(1.05);
    background-color: rgba(0, 0, 0, 0.3);
    border-color: rgba(0, 122, 204, 0.8);
    box-shadow: 0 0 20px rgba(0, 122, 204, 0.4),
        inset 0 0 15px rgba(0, 122, 204, 0.2);
}

.album-card img {
    max-width: 100%;
    border-radius: 5px;
    transition: transform 0.3s ease;
}

.album-card:hover img {
    transform: scale(1.02);
}

/* Mantieni l'effetto neon sul testo */
.album-card h3 {
    margin-top: 10px;
    font-size: 1.5em;
    color: #007acc;
    /* Colore normale bianco */
    text-shadow: none;
    /* Rimuove il glow iniziale */
    transition: all 0.3s ease;
    user-select: none;
    cursor: default;
}

.album-card:hover h3 {
    color: #007acc;
    /* Diventa blu all'hover */
    text-shadow: 0 0 10px #007acc,
        0 0 20px #007acc,
        0 0 30px #007acc;
}

/* Aggiorna lo stile dei bottoni nelle card */
.listen-now {
    background-color: rgba(0, 122, 204, 0.2);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    color: white;
    border: 1px solid rgba(0, 122, 204, 0.3);
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.listen-now:hover {
    background-color: rgba(0, 122, 204, 0.4);
    border-color: rgba(0, 122, 204, 0.8);
    box-shadow: 0 0 15px rgba(0, 122, 204, 0.5);
}

.listen-now-main {
    background-color: rgba(0, 122, 204, 0.2);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    color: white;
    border: 1px solid rgba(0, 122, 204, 0.3);
    padding: 18px 40px;
    border-radius: 7px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 18px;
    font-size: 1.5em;
    box-shadow: none;
    display: inline-block;
}

.listen-now-main:hover {
    background-color: rgba(0, 122, 204, 0.4);
    border-color: rgba(0, 122, 204, 0.8);
    box-shadow: 0 0 15px rgba(0, 122, 204, 0.5);
    transform: none;
}

.footer {
    background-color: rgba(0, 0, 0, 0.5);
    color: #aaa;
    text-align: center;
    padding: 20px;
    margin-top: 30px;
    width: 100%;
}

.footer a {
    color: #007acc;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* Modifica l'animazione delle stelle */
.stars {
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1;
    background: url('https://www.transparenttextures.com/patterns/stardust.png');
    background-size: 400px 400px;
    animation: moveStars 100s linear infinite;
    opacity: 0.8;
}

.stars:after {
    content: "";
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    background: url('https://www.transparenttextures.com/patterns/stardust.png');
    background-size: 300px 300px;
    animation: moveStars 150s linear infinite reverse;
    opacity: 0.6;
    z-index: -1;
}

@keyframes moveStars {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(-100%);
    }
}

@keyframes twinkle {

    0%,
    100% {
        opacity: 0.3;
        transform: scale(0.8);
    }

    50% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Rendi la playbar completamente trasparente */
.player-bar {
    position: fixed;
    bottom: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Migliora la leggibilità dei controlli nella playbar */
.player-controls button,
.song-details p,
#current-song,
#current-artist {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9);
}

.player-info {
    display: flex;
    align-items: center;
    flex: 1;
    color: #fff;
}

.album-cover {
    width: 50px;
    height: 50px;
    border-radius: 5px;
    margin-right: 10px;
}

.song-details {
    display: flex;
    flex-direction: column;
}

.song-details p {
    margin: 0;
}

#current-song {
    font-weight: bold;
}

#current-artist {
    font-size: 0.9em;
    color: #b3b3b3;
}

player-controls {
    display: flex;
    align-items: center;
    flex: 2;
    justify-content: center;
}

.player-controls button {
    background-color: transparent;
    color: #fff;
    border: none;
    padding: 10px;
    margin: 0 10px;
    cursor: pointer;
    font-size: 1.5em;
    transition: color 0.3s;
}

.player-controls button:hover {
    color: #007acc;
    /* Colore blu al passaggio del mouse */
}

#shuffle.active,
#loop.active {
    color: #007acc;
    /* Colore blu quando attivo */
}

#progress-bar {
    width: 300px;
    margin: 0 10px;
    -webkit-appearance: none;
    appearance: none;
    height: 5px;
    background: #555;
    border-radius: 5px;
    outline: none;
    transition: background 0.3s;
}

#progress-bar::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 15px;
    height: 15px;
    background: #2d1db9;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
}

#progress-bar::-moz-range-thumb {
    width: 15px;
    height: 15px;
    background: #007acc;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
}

.volume-controls {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: flex-end;
    color: #fff;
}

#volume-control {
    width: 100px;
    -webkit-appearance: none;
    appearance: none;
    height: 5px;
    background: #555;
    border-radius: 5px;
    outline: none;
    transition: background 0.3s;
}

#volume-control::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 15px;
    height: 15px;
    background: #007acc;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
}

#volume-control::-moz-range-thumb {
    width: 15px;
    height: 15px;
    background: #007acc;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
}

#current-time,
#total-duration {
    color: #b3b3b3;
    font-size: 0.9em;
    margin: 0 10px;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.overlay.visible {
    display: flex;
}

.overlay-content {
    background-color: #1a1a1a;
    padding: 20px;
    border-radius: 10px;
    width: 80%;
    max-width: 800px;
    color: #fff;
    text-align: left;
    position: relative;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: transparent;
    border: none;
    font-size: 2em;
    color: #fff;
    cursor: pointer;
    transition: color 0.3s;
}

.close-btn:hover {
    color: #007acc;
}

.album-details {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.album-details img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
    margin-right: 20px;
}

.album-info h2 {
    font-size: 1.8em;
    margin: 0;
    color: #007acc;
    /* Blu più scuro */
    text-shadow: 0 0 3px #007acc, 0 0 6px #007acc;
    /* Effetto neon meno sfocato */
    transition: color 0.3s, text-shadow 0.3s;
    user-select: none;
    /* Impedisce la selezione del testo */
    cursor: default;
    /* Mostra il cursore normale */
}

.album-info h2:hover {
    color: #1e90ff;
    /* Blu più chiaro al passaggio del mouse */
    text-shadow: 0 0 8px #1e90ff, 0 0 16px #1e90ff;
    /* Effetto neon più intenso */
}

.album-info p {
    margin: 5px 0;
    font-size: 1em;
    color: #ccc;
}

.song-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.song-list li {
    display: flex;
    justify-content: space-between;
    /* Posiziona il nome e la durata ai lati opposti */
    margin: 10px 0;
    font-size: 1em;
    color: #fff;
}

.song-duration {
    color: #ccc;
    /* Colore più chiaro per la durata */
    font-size: 0.9em;
    text-align: right;
    min-width: 50px;
    /* Assicura che la durata sia allineata */
}

.song-list li.playing {
    color: #007acc;
}

button {
    transition: background-color 0.3s, color 0.3s;
}

button:hover {
    background-color: #007acc;
    color: #fff;
}

.equalizer {
    display: flex;
    align-items: flex-end;
    height: 30px;
    margin-top: 10px;
}

.bar {
    width: 5px;
    height: 100%;
    background-color: #007acc;
    margin: 0 1px;
    animation: equalizer 1s infinite;
    transition: height 0.1s;
}

.bar:nth-child(2) {
    animation-delay: 0.1s;
}

.bar:nth-child(3) {
    animation-delay: 0.2s;
}

.bar:nth-child(4) {
    animation-delay: 0.3s;
}

@keyframes equalizer {

    0%,
    100% {
        transform: scaleY(1);
    }

    50% {
        transform: scaleY(0.5);
    }
}

/* Hamburger Menu - nascosto di default su desktop */
.hamburger-menu {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-left: auto;
}

.hamburger-line {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px 0;
    background-color: #fff;
    transition: all 0.3s ease;
}

@media screen and (max-width: 768px) {
    .hamburger-menu {
        display: block;
        position: absolute;
        top: 20px;
        right: 20px;
        z-index: 1000;
    }

    header {
        position: relative;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .nav {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.95);
        padding: 80px 20px 20px;
        flex-direction: column;
        z-index: 999;
    }

    .nav.nav--open {
        display: flex;
    }

    .nav a {
        margin: 10px 0;
        font-size: 1.5em;
    }

    .hamburger-menu.is-active .hamburger-line:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger-menu.is-active .hamburger-line:nth-child(2) {
        opacity: 0;
    }

    .hamburger-menu.is-active .hamburger-line:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

/* Contenitore della barra di ricerca */
.search-container {
    position: relative;
    width: 80%;
    max-width: 600px;
    margin: 20px auto;
    z-index: 1000;
}

/* Barra di ricerca */
#search-bar {
    width: 100%;
    padding: 12px 20px;
    border-radius: 25px;
    border: none;
    background: rgba(34, 34, 34, 0.8);
    color: white;
    font-size: 16px;
}

/* Contenitore risultati */
.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 5px;
    background: rgba(34, 34, 34, 0.95);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
}

/* Stile singolo risultato */
.search-result {
    display: flex;
    align-items: center;
    padding: 12px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.search-result:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Stile informazioni risultato */
.result-info {
    margin-left: 15px;
    flex-grow: 1;
}

.result-info h4 {
    margin: 0;
    font-size: 16px;
    color: #fff;
}

.result-info p {
    margin: 4px 0 0;
    font-size: 14px;
    color: #aaa;
}

/* Badge tipo risultato */
.result-type {
    font-size: 12px;
    color: #888;
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 8px;
}

/* Scrollbar personalizzata per i risultati */
.search-results::-webkit-scrollbar {
    width: 8px;
}

.search-results::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}

.search-results::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

/* Stile per le canzoni nell'overlay */
.song-item {
    display: flex;
    justify-content: space-between;
    margin: 10px 0;
    font-size: 1em;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}

.song-item:hover {
    background-color: #007acc;
    /* Sfondo azzurro al passaggio del mouse */
    color: #fff;
    /* Testo bianco al passaggio del mouse */
}

.song-item.playing {
    background-color: #1db954;
    /* Sfondo verde per la canzone in riproduzione */
    color: #000;
    /* Testo nero per la canzone in riproduzione */
}

#audio-loading {
    display: none;
}

/*bodoaga*/
#like-button.like-button {
    background: transparent !important;
    border: none;
    box-shadow: none;
    color: #ff4b4b;
    font-size: 1.7em;
    cursor: pointer;
    transition: color 0.2s, transform 0.2s;
    padding: 0 10px;
}

#like-button.like-button:hover {
    color: #ff1a1a;
    background: transparent !important;
    transform: scale(1.15);
}

/*add to playlist button*/
#add-to-playlist-button.add-to-playlist-button {
    background: transparent !important;
    border: none;
    box-shadow: none;
    color: #ffffff;
    font-size: 1.4em;
    cursor: pointer;
    transition: color 0.2s, transform 0.2s;
    padding: 0 10px;
}

#add-to-playlist-button.add-to-playlist-button:hover {
    color: #007acc;
    background: transparent !important;
    transform: scale(1.15);
}

#add-to-playlist-button.add-to-playlist-button:active {
    color: #007acc;
    transform: scale(1.05);
}

/* Stili per il pulsante dei testi nella player bar */
.lyrics-button {
    background: none;
    border: none;
    color: #b3b3b3;
    font-size: 1.2em;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
}

.lyrics-button:hover {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

.lyrics-button.active {
    color: #007acc;
    background-color: rgba(0, 122, 204, 0.2);
}

/* Overlay per i testi - STILE COERENTE CON IL SITO */
.lyrics-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    /* Sfondo molto più trasparente */
    backdrop-filter: blur(20px);
    /* Effetto vetro aumentato */
    -webkit-backdrop-filter: blur(20px);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    transform: scale(0.95);
}

.lyrics-overlay.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.lyrics-overlay-content {
    background: rgba(0, 0, 0, 0.15);
    /* Trasparenza leggera come le album-card */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(0, 122, 204, 0.3);
    /* Bordo blu coerente */
    border-radius: 20px;
    /* Stile arrotondato coerente */
    width: 90%;
    max-width: 700px;
    max-height: 85vh;
    overflow: hidden;
    box-shadow:
        0 0 25px rgba(0, 122, 204, 0.2),
        inset 0 0 20px rgba(0, 122, 204, 0.1);
    transition: all 0.3s ease;
}

.lyrics-header {
    background: rgba(0, 122, 204, 0.2);
    /* Stile simile ai pulsanti del sito */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 122, 204, 0.3);
    border-radius: 15px 15px 0 0;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.lyrics-header h2 {
    margin: 0;
    color: #007acc;
    /* Colore blu coerente */
    font-size: 1.5em;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(0, 122, 204, 0.5);
    /* Effetto neon come nel sito */
}

.lyrics-close-btn {
    background: rgba(0, 122, 204, 0.2);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(0, 122, 204, 0.3);
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.lyrics-close-btn:hover {
    background: rgba(0, 122, 204, 0.4);
    border-color: rgba(0, 122, 204, 0.8);
    box-shadow: 0 0 15px rgba(0, 122, 204, 0.5);
    /* Effetto glow coerente */
    transform: scale(1.1);
}

.lyrics-container {
    padding: 25px;
    max-height: 400px;
    overflow-y: auto;
    background: transparent;
    /* Sfondo completamente trasparente */
    position: relative;
}

.lyrics-container::-webkit-scrollbar {
    width: 8px;
}

.lyrics-container::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.lyrics-container::-webkit-scrollbar-thumb {
    background: rgba(0, 122, 204, 0.6);
    /* Scrollbar blu coerente */
    border-radius: 4px;
    border: 1px solid rgba(0, 122, 204, 0.3);
}

.lyrics-container::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 122, 204, 0.8);
    box-shadow: 0 0 8px rgba(0, 122, 204, 0.4);
}

.lyrics-content {
    text-align: center;
    line-height: 2.5;
    font-size: 1.2rem;
    color: #ffffff;
    /* Testo bianco per contrasto */
    font-family: 'Roboto', sans-serif;
    /* Font coerente con il sito */
}

.lyric-line {
    display: block;
    margin: 12px 0;
    padding: 12px 20px;
    border-radius: 10px;
    /* Bordi arrotondati coerenti */
    background: rgba(0, 0, 0, 0.2);
    /* Sfondo simile alle album-card */
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    color: #ffffff;
}

.lyric-line:hover {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(0, 122, 204, 0.8);
    box-shadow: 0 0 20px rgba(0, 122, 204, 0.4),
        inset 0 0 15px rgba(0, 122, 204, 0.2);
    transform: scale(1.02);
    /* Effetto hover simile alle album-card */
}

/* Classe per evidenziare la riga corrente - STILE COERENTE */
.lyric-line.highlight {
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(0, 122, 204, 0.8);
    color: #007acc !important;
    font-weight: bold;
    transform: scale(1.05);
    box-shadow:
        0 0 25px rgba(0, 122, 204, 0.5),
        inset 0 0 20px rgba(0, 122, 204, 0.2);
    text-shadow: 0 0 10px #007acc,
        0 0 20px #007acc,
        0 0 30px #007acc;
    /* Effetto neon come i titoli degli album */
    font-size: 1.3rem;
    animation: lyrics-glow 1s ease-in-out;
}

/* Nuova animazione coerente con il sito */
@keyframes lyrics-glow {
    0% {
        transform: scale(1.05);
        text-shadow: 0 0 10px #007acc, 0 0 20px #007acc, 0 0 30px #007acc;
    }

    50% {
        transform: scale(1.08);
        text-shadow: 0 0 15px #007acc, 0 0 25px #007acc, 0 0 35px #007acc;
    }

    100% {
        transform: scale(1.05);
        text-shadow: 0 0 10px #007acc, 0 0 20px #007acc, 0 0 30px #007acc;
    }
}

.lyrics-loading {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 250px;
    color: #007acc;
    /* Colore blu coerente */
    font-size: 1.1rem;
}

.lyrics-not-found {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 250px;
    text-align: center;
    color: #b3b3b3;
    font-style: italic;
    padding: 30px 20px;
    font-size: 1.1rem;
}

.lyrics-not-found p {
    margin: 8px 0;
    font-size: 1em;
}

/* Controlli sincronizzazione - STILE COERENTE */
.lyrics-controls {
    background: rgba(0, 122, 204, 0.2);
    /* Stile simile ai pulsanti del sito */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 122, 204, 0.3);
    color: white;
    padding: 15px 20px;
    margin: 0 20px 20px 20px;
    border-radius: 10px;
    /* Bordi arrotondati coerenti */
    font-size: 0.9rem;
    text-align: center;
    transition: all 0.3s ease;
}

.lyrics-controls:hover {
    background: rgba(0, 122, 204, 0.3);
    border-color: rgba(0, 122, 204, 0.5);
    box-shadow: 0 0 15px rgba(0, 122, 204, 0.3);
}

.lyrics-controls strong {
    color: #007acc;
    /* Colore blu coerente */
    text-shadow: 0 0 5px rgba(0, 122, 204, 0.5);
    font-weight: 600;
}

.lyrics-controls small {
    font-size: 0.8rem;
    opacity: 0.9;
    display: block;
    margin-top: 8px;
    line-height: 1.4;
}

/* ========== EQUALIZZATORE AUDIO ========== */

.equalizer-button {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.2em;
    padding: 8px;
    margin-left: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 50%;
}

.equalizer-button:hover {
    color: #00bfff;
    background: rgba(0, 191, 255, 0.1);
}

.equalizer-button.active {
    color: #00bfff;
    background: rgba(0, 191, 255, 0.2);
}

.equalizer-panel {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 420px;
    max-height: 80vh;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.95) 0%, rgba(20, 20, 40, 0.95) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 191, 255, 0.3);
    border-radius: 15px;
    transform: translateY(100%) scale(0.8);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 2000;
    box-shadow: 0 20px 40px rgba(0, 191, 255, 0.1);
    overflow: hidden;
}

.equalizer-panel.show {
    transform: translateY(0) scale(1);
    opacity: 1;
    visibility: visible;
}

.eq-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: linear-gradient(90deg, rgba(0, 191, 255, 0.1) 0%, rgba(0, 123, 255, 0.1) 100%);
    border-bottom: 1px solid rgba(0, 191, 255, 0.2);
}

.eq-header h3 {
    margin: 0;
    color: #fff;
    font-size: 1.1em;
    font-weight: 600;
}

.eq-header-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.preset-selector {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(0, 191, 255, 0.3);
    border-radius: 8px;
    color: #fff;
    padding: 8px 12px;
    font-size: 0.9em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.preset-selector:hover {
    border-color: #00bfff;
    background: rgba(0, 191, 255, 0.1);
}

.preset-selector option {
    background: #1a1a1a;
    color: #fff;
}

.eq-close-btn {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.5em;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.eq-close-btn:hover {
    background: rgba(255, 0, 0, 0.2);
    color: #ff4757;
}

.eq-content {
    padding: 20px;
    max-height: 60vh;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #00bfff rgba(0, 0, 0, 0.3);
}

.eq-content::-webkit-scrollbar {
    width: 6px;
}

.eq-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 3px;
}

.eq-content::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #00bfff, #007acc);
    border-radius: 3px;
}

.frequency-section,
.bass-treble-section,
.effects-section,
.spectrum-section {
    margin-bottom: 25px;
}

.frequency-section h4,
.bass-treble-section h4,
.effects-section h4,
.spectrum-section h4 {
    color: #00bfff;
    margin: 0 0 15px 0;
    font-size: 1em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Sliders delle frequenze */
.frequency-sliders {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
}

.freq-slider-group {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.freq-slider-group label {
    font-size: 0.8em;
    color: #b3b3b3;
    margin-bottom: 8px;
    font-weight: 500;
}

.freq-slider {
    writing-mode: bt-lr;
    /* IE */
    writing-mode: vertical-lr;
    /* Standard */
    -webkit-appearance: slider-vertical;
    appearance: slider-vertical;
    width: 6px;
    height: 120px;
    background: linear-gradient(180deg, #ff4757 0%, #ffa502 25%, #2ed573 50%, #ffa502 75%, #ff4757 100%);
    border-radius: 3px;
    outline: none;
    cursor: pointer;
}

.freq-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: #00bfff;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 8px rgba(0, 191, 255, 0.5);
    border: 2px solid #fff;
}

.freq-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: #00bfff;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 0 8px rgba(0, 191, 255, 0.5);
}

.freq-value {
    font-size: 0.7em;
    color: #00bfff;
    margin-top: 8px;
    font-weight: 600;
}

/* Bass e Treble */
.bass-treble-controls {
    display: flex;
    justify-content: space-around;
    gap: 40px;
}

.bass-control,
.treble-control {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.bass-control label,
.treble-control label {
    color: #b3b3b3;
    margin-bottom: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.knob-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.knob {
    width: 80px;
    height: 80px;
    -webkit-appearance: none;
    appearance: none;
    background: conic-gradient(from 135deg, #ff4757 0deg, #ffa502 90deg, #2ed573 180deg, #ffa502 270deg, #ff4757 360deg);
    border-radius: 50%;
    cursor: pointer;
    outline: none;
    position: relative;
}

.knob::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: #00bfff;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 191, 255, 0.7);
    border: 3px solid #fff;
}

.knob-value {
    color: #00bfff;
    font-size: 0.9em;
    font-weight: 600;
    margin-top: 10px;
}

/* Effetti Audio */
.effects-controls {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.effect-group {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    padding: 15px;
    border: 1px solid rgba(0, 191, 255, 0.2);
}

.effect-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.effect-toggle span {
    color: #fff;
    font-weight: 600;
}

/* Switch personalizzato */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #333;
    transition: 0.4s;
    border-radius: 28px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: #00bfff;
}

input:checked+.slider:before {
    transform: translateX(22px);
}

.effect-controls {
    display: none;
    flex-direction: column;
    gap: 10px;
}

.effect-controls.active {
    display: flex;
}

.effect-controls select {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(0, 191, 255, 0.3);
    border-radius: 6px;
    color: #fff;
    padding: 8px;
    margin-bottom: 10px;
}

.control-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.control-group label {
    color: #b3b3b3;
    font-size: 0.9em;
    min-width: 60px;
}

.control-group input[type="range"] {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 4px;
    background: #333;
    border-radius: 2px;
    outline: none;
}

.control-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    background: #00bfff;
    border-radius: 50%;
    cursor: pointer;
}

.control-group span {
    color: #00bfff;
    font-size: 0.8em;
    min-width: 50px;
    text-align: right;
}

/* Analizzatore di Spettro */
.spectrum-analyzer {
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    padding: 15px;
    border: 1px solid rgba(0, 191, 255, 0.2);
}

#spectrum-canvas {
    width: 100%;
    height: 100px;
    border-radius: 5px;
    background: rgba(0, 0, 0, 0.8);
}

/* Azioni Equalizzatore */
.eq-actions {
    display: flex;
    justify-content: space-between;
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(0, 191, 255, 0.2);
}

.eq-btn {
    background: linear-gradient(135deg, #00bfff, #007acc);
    border: none;
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.eq-btn:hover {
    background: linear-gradient(135deg, #007acc, #0056b3);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 191, 255, 0.3);
}

.reset-btn {
    background: linear-gradient(135deg, #ff4757, #ff3742);
}

.reset-btn:hover {
    background: linear-gradient(135deg, #ff3742, #ff1e30);
}

/* Responsive per mobile */
@media (max-width: 768px) {
    .equalizer-panel {
        width: 95vw;
        right: 2.5vw;
        max-height: 70vh;
    }

    .frequency-sliders {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .freq-slider {
        height: 80px;
    }

    .bass-treble-controls {
        gap: 20px;
    }

    .knob {
        width: 60px;
        height: 60px;
    }

    .player-bar {
        width: 100%;
        height: 65px;
    }

    /* Evita che la player bar fissa copra il contenuto su mobile */
    body {
        padding-bottom: 110px;
    }

    .album-container {
        grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
        gap: 10px;
    }

    .album-card {
        padding: 10px;
    }

    .album-card h3 {
        font-size: 1em;
    }
        .player-controls button {
        font-size: 1em;
        padding: 6px;
        margin: 0 3px;
    }

}

/* ========== MODAL LOGIN REQUIRED ========== */
.modal-login-required {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    backdrop-filter: blur(4px);
}

.modal-login-content {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(29, 185, 84, 0.1);
    padding: 0;
    max-width: 450px;
    width: 90%;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-login-header {
    padding: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-login-header h2 {
    margin: 0;
    font-size: 1.8em;
    color: #fff;
    font-weight: 600;
}

.modal-login-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.8em;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.modal-login-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #1db954;
}

.modal-login-body {
    padding: 30px 25px;
    text-align: center;
}

.modal-login-body p {
    font-size: 1.05em;
    color: #b3b3b3;
    margin: 0;
    line-height: 1.6;
}

.modal-login-footer {
    padding: 20px 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

.modal-login-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 50px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modal-login-btn.cancel {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.modal-login-btn.cancel:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.modal-login-btn.primary {
    background: linear-gradient(135deg, #1db954 0%, #1ed760 100%);
    color: #000;
    border: none;
}

.modal-login-btn.primary:hover {
    background: linear-gradient(135deg, #1ed760 0%, #1db954 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(29, 185, 84, 0.3);
}

.modal-login-btn.primary:active {
    transform: translateY(0);
}

@media (max-width: 600px) {
    .modal-login-content {
        max-width: 95%;
    }

    .modal-login-header {
        padding: 20px;
    }

    .modal-login-body {
        padding: 20px;
    }

    .modal-login-footer {
        flex-direction: column-reverse;
        padding: 15px 20px;
    }

    .modal-login-btn {
        width: 100%;
    }
}
