@@ -136,7 +136,9 @@ function CategoryRow({ category, onVideoClick }: CategoryRowProps) {
const scroll = (direction: 'left' | 'right') => {
if (scrollRef.current) {
- const scrollAmount = 240; // Width of card + gap
+ // Responsive scroll amount - wider cards on desktop
+ const isMobile = window.innerWidth < 768;
+ const scrollAmount = isMobile ? 240 : 336; // Mobile: 224px + gap, Desktop: 320px + gap
const currentScroll = scrollRef.current.scrollLeft;
const targetScroll = direction === 'left'
? currentScroll - scrollAmount
@@ -181,10 +183,10 @@ function CategoryRow({ category, onVideoClick }: CategoryRowProps) {
style={{ scrollbarWidth: 'none', msOverflowStyle: 'none' }}
>
{category.videos.map((video, index) => (
-
+
{/* Top 10 Number overlay for first category */}
{category.title.includes("Top 10") && index < 10 && (
-
{/* Simple thumbnail with fallback - no HLS loading until needed */}
onClick?.(video)}
>
![]()