276276 box-shadow : 0 4px 8px rgba (0 , 0 , 0 , 0.3 );
277277}
278278
279+ /* Fixed thumbnail styling - removed black gap issue */
279280.video-thumbnail {
280281 position : relative;
281282 width : 100% ;
282283 height : 220px ;
283- padding-top : 0 ;
284284 overflow : hidden;
285- background : linear-gradient (145deg , # f1f5f9 0% , # e2e8f0 100% );
286285 flex-grow : 1 ;
287286 border-radius : 16px ;
288- box-shadow :
289- 0 4px 12px rgba (0 , 0 , 0 , 0.08 ),
290- inset 0 1px 3px rgba (255 , 255 , 255 , 0.1 );
291287 transition : all 0.3s ease;
288+ /* Removed background that was causing black gap */
292289}
293290
294291[data-theme = 'dark' ] .video-thumbnail {
295- background : linear-gradient (145deg , # 1e293b 0% , # 0f172a 100% );
296- box-shadow :
297- 0 4px 12px rgba (0 , 0 , 0 , 0.3 ),
298- inset 0 1px 3px rgba (255 , 255 , 255 , 0.05 );
292+ /* Removed background gradient that was causing black gap in dark theme */
299293}
300294
301295.video-card : hover .video-thumbnail {
302296 transform : scale (1.02 );
303- box-shadow :
304- 0 8px 24px rgba (0 , 0 , 0 , 0.12 ),
305- inset 0 1px 3px rgba (255 , 255 , 255 , 0.1 );
306- }
307-
308- [data-theme = 'dark' ] .video-card : hover .video-thumbnail {
309- box-shadow :
310- 0 8px 24px rgba (0 , 0 , 0 , 0.4 ),
311- inset 0 1px 3px rgba (255 , 255 , 255 , 0.05 );
312297}
313298
314299.thumbnail-container {
318303 width : 100% ;
319304 height : 100% ;
320305 display : flex;
321- align-items : center;
322- justify-content : center;
323- background : linear-gradient (145deg , # f8fafc 0% , # e2e8f0 100% );
306+ align-items : stretch;
307+ justify-content : stretch;
324308 border-radius : 16px ;
325309 overflow : hidden;
326310 transition : all 0.3s ease;
311+ background : # f8fafc ;
327312}
328313
329314[data-theme = 'dark' ] .thumbnail-container {
330- background : linear-gradient ( 145 deg , # 1e293b 0 % , # 0f172a 100 % ) ;
315+ background : # 1e293b ;
331316}
332317
333318.thumbnail-img {
338323 background : transparent;
339324 position : relative;
340325 z-index : 1 ;
326+ border-radius : 16px ;
327+ /* Ensure image covers the entire container without gaps */
328+ display : block;
341329}
342330
343331.thumbnail-img [src = "" ] {
357345 padding : 2rem ;
358346 text-align : center;
359347 border-radius : 16px ;
360- position : relative;
348+ position : absolute;
349+ top : 0 ;
350+ left : 0 ;
361351}
362352
363353[data-theme = 'dark' ] .thumbnail-placeholder {
386376 letter-spacing : 0.01em ;
387377}
388378
389- .video-card : hover .thumbnail-img {
379+ .video-container . video- card: hover . thumbnail-container .thumbnail-img {
390380 transform : scale (1.05 );
391381}
392382
638628 color : var (--dark-text-primary );
639629 background : linear-gradient (145deg , rgba (59 , 130 , 246 , 0.1 ) 0% , rgba (168 , 85 , 247 , 0.1 ) 100% );
640630 border-color : rgba (59 , 130 , 246 , 0.3 );
641- }
631+ }
0 commit comments