                   console.error('Error playing audio after expand:', e);
                                });
                                console.log('Attempted to play audio after expand for:', recordId);
                             }, 50); // Adjust delay if necessary
                         } else {
                             console.error('Audio element not found after expand for:', recordId);
                         }
                    });
                }
            }
        }));
    });