document.addEventListener('DOMContentLoaded', () => {
    const player = new Plyr(document.getElementById('player-ply'), {
        captions: { active: true, language: 'es' },
        controls: [
            'play-large',
            'play',
            'progress',
            'current-time',
            'mute',
            'volume',
            'captions',
            'settings',
            'download',
            'fullscreen'
        ]
    });
});
