/* ================== CARD PRINCIPAL ================== */

.lofi-card {
    width: 280px;
    height: 330px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    padding: 10px;
    background-color: #fff;
    border-radius: 16px;
    box-shadow: var(--sombra-fofa);
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.4s ease, transform 0.4s ease;
}

/* ================== CAPA DA MÚSICA ================== */

.lofi-cover-container {
    width: 220px;
    height: 160px;
    border-radius: 10px;
    margin-top: 12px;
    overflow: hidden;
    position: relative;
}

.lofi-cover {
    width: 100%;
    height: 100%;
    border: 3px solid var(--rosa-medio);
    border-radius: 10px;
    object-fit: cover;
    opacity: 1;
    transition: opacity 0.6s ease-in-out, transform 0.6s ease;
}

.lofi-cover.fade-out {
    opacity: 0;
    transform: scale(1.05);
}

/* ================== BOTÃO PLAY/PAUSE CENTRAL ================== */

#lofi-img-btn {
    transition: opacity 0.3s ease;
    opacity: 1;
    cursor: pointer;
    z-index: 10;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.lofi-player-img {
    width: 35px;
    height: 35px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    cursor: pointer;
    z-index: 10;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(3px);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1em;
    color: #fff;
    box-shadow: 0 0 8px rgba(255, 192, 203, 0);
    transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.6s ease;
}

.lofi-player-img:hover {
    transform: translate(-50%, -50%) scale(1.15);
    background: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 12px rgba(255, 182, 193, 0.6);
}

/* ================== BARRA DE VOLUME ================== */

.volume-container {
    width: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 12px 0; 
    transition: opacity 0.4s ease;
}

.volume-emoji {
    font-size: 22px;
}

.volume-slider {
    width: 100%;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 182, 193, 0.5);
    border-radius: 3px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.volume-slider:hover {
    background: rgba(255, 105, 180, 0.7);
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ff69b4;
    transition: transform 0.2s ease;
}

.volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.volume-slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ff69b4;
}

/* ================== BOTÕES DE MÚSICA ================== */

.lofi-options {
    display: flex;
    flex-direction: row;
    justify-content: center;    
    align-items: center;       
    flex-wrap: nowrap;          
    gap: 8px;                   
    width: 100%;
}

.lofi-music-btn {
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 3px 5px rgba(255, 105, 180, 0.3);

    display: flex;
    align-items: center;
    justify-content: center;

    width: 45px;
    height: 45px;
    flex-shrink: 0;             
}

/* ================== DEGRADE PARA 4 BOTÕES ================== */

.lofi-music-btn:nth-child(1) { background: linear-gradient(145deg, #ffadd6, #ffadd6); }
.lofi-music-btn:nth-child(2) { background: linear-gradient(145deg, #ff8ac1, #ff8ac1); }
.lofi-music-btn:nth-child(3) { background: linear-gradient(145deg, #ff66aa, #ff66aa); }
.lofi-music-btn:nth-child(4) { background: linear-gradient(145deg, #ff3388, #ff3388); }

.lofi-music-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 8px rgba(255, 105, 180, 0.35);
    filter: brightness(1.05);
}

.lofi-music-btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(255, 105, 180, 0.2);
}

.lofi-music-btn.active {
    transform: scale(1.05);
    color: #fff;
    box-shadow: 0 5px 12px rgba(255, 0, 128, 0.6);
}

/* ================== RESPONSIVIDADE ================== */

@media (max-width: 600px) {
    .lofi-cover-container {
        width: 180px;
        height: 180px;
    }

    .lofi-player-img {
        width: 40px;
        height: 40px;
    }

    .volume-container {
        width: 180px;
    }

    .volume-slider {
        height: 5px;
    }

    .lofi-music-btn {
        font-size: 18px;
        width: 40px;
        height: 40px;
    }
}
