class VideoCard extends HTMLElement { connectedCallback() { const videoId = this.getAttribute('video-id') || 'dQw4w9WgXcQ'; const title = this.getAttribute('title') || 'News Analysis Video'; const description = this.getAttribute('description') || 'My take on current events'; const duration = this.getAttribute('duration') || '10:00'; const views = this.getAttribute('views') || '1.2k'; const likes = this.getAttribute('likes') || '150'; this.attachShadow({ mode: 'open' }); this.shadowRoot.innerHTML = `
${videoId.includes('rumble.com') ? `` : ``}

${title}

${description}

${duration} ${views} views ${likes} likes
`; feather.replace({ class: 'feather', 'stroke-width': 2 }); } } customElements.define('video-card', VideoCard);