/* CONTAINER PRINCIPAL (GRID) */
.container-ritmos {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    box-sizing: border-box;
    padding: 30px 0;
}

/* CARD - BASEADO NAS PROPORÇÕES QUE VOCÊ ENVIOU */
.item-ritmo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    /* Fundo dark profundo com gradiente bem suave para não "saltar" da página */
    background: linear-gradient(145deg, #15181b 0%, #0e1113 100%);
    border-radius: 10px;
    padding: 5px;
    margin: 0 10px 10px 0;
    box-sizing: border-box;
    /* Borda muito sutil: quase invisível, apenas para definir o limite do card */
    border: 1px solid rgba(255, 255, 255, 0.05);
    height: 50px;
    width: calc((100% / 4) - 10px);
    /* Removido efeitos de transformação/escala para ficar estático */
    position: relative;
    overflow: hidden;
    font-family: 'Plus Jakarta Sans', sans-serif;
}


/* EFEITO QUANDO O ÁUDIO ESTÁ TOCANDO (BORDA VERDE) */
.item-ritmo.playing-card {
    border: 1.5px solid #10b981;
    background: #363535;
    box-shadow: 0 0 12px rgba(34, 197, 94, 0.2);
    animation: pulsarAtivo 1.5s infinite ease-in-out;
}

@keyframes pulsarAtivo {
    0% { transform: scale(1); }
    50% { transform: scale(1.005); }
    100% { transform: scale(1); }
}

/* RESPONSIVIDADE */
@media (max-width: 1100px) { .item-ritmo { width: calc((100% / 3) - 10px); } }
@media (max-width: 850px) { .item-ritmo { width: calc((100% / 2) - 10px); } }
@media (max-width: 600px) { 
    .item-ritmo { 
        width: 100%; 
        margin-right: 0; 
    } 
    /* Ajuste específico para o texto não empurrar os botões no celular */
    .item-ritmo .info { 
        width: auto !important; 
        flex: 1; 
    }
}

/* IMAGEM */
.item-ritmo img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
    margin-right: 5px;
}

/* TEXTOS */
.item-ritmo .info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-left: 2px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: #fff;
    width: 200px;
    overflow: hidden;
    position: relative;
    justify-content: center;
}

.item-ritmo h3 {
    margin: 0;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    font-weight: 300;
}

.preco-box {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
}

/* BOTÕES */
.acoes-card {
    display: flex;
    align-items: center;
    height: 40px;
    margin: 0 2px;
    gap: 8px;
    margin-left: auto;
}

/* BOTÃO PLAY */
.btn-play {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 2px solid #fff;
    background-color: transparent;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    padding-left: 10px;
    padding-bottom: 5px;
    transition: all 0.2s;
}

/* Apenas o efeito de zoom ao passar o mouse */
.btn-play:hover {
    transform: scale(1.1); /* O zoom básico que você pediu */
    border-color: #10b981; /* Muda para o seu verde selecionado */
    color: #10b981;
}

/* PLAY VERDE QUANDO TOCANDO */
.item-ritmo.playing-card .btn-play {
    border-color: #10b981;
    color: #089f6d;
    font-size: 25px;
    padding-left: 7px;
    padding-bottom: 5px;
}

/* BOTÃO COMPRAR */
.btn-comprar {
    font-family: 'Plus Jakarta Sans', sans-serif;
    padding: 5px 10px;
    border-radius: 5px;
    background-color: #10b981;
    color: #fff;
    text-align: center;
    height: 38px;
    line-height: 28px;
    border: none;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
}