"use client"; import React from "react"; export function ResponsivePlayer({ url }) { const getYouTubeId = (url) => { if (!url) return null; const regExp = /^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|&v=)([^#&?]*).*/; const match = url.match(regExp); return (match && match[2].length === 11) ? match[2] : null; }; const videoId = getYouTubeId(url); if (videoId) { return ( /* 1. Removed 'player-wrapper' class to avoid global.css conflict (double height). 2. Reduced max-width to 'max-w-2xl' so it fits better in the text flow. */