/* styles.css */
.video-row {
display: flex;
flex-direction: row;
gap: 15px;
flex-wrap: wrap;
padding-bottom: 10px;
}

.video-card {
width: 320px;
flex-shrink: 0;
border-radius: 8px;
background: #fff;
overflow: hidden;
display: flex;
flex-direction: column;
transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-card:hover {
transform: translateY(-5px) scale(1.03);
/*box-shadow: 0 8px 20px rgba(0,0,0,0.2);*/
}

.video-thumb-wrapper {
width: 100%;
aspect-ratio: 16 / 9;
overflow: hidden;
border-radius: 8px;
background: #000;
}

.video-thumb-wrapper img {
width: 100%;
height: 100%;
object-fit: cover;
transition: transform 0.3s ease;
}

.video-card:hover .video-thumb-wrapper img {
transform: scale(1.05);
}

.video-title {
margin-top: 6px;
font-size: 16px;
font-weight: bold;
padding: 4px;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
text-overflow: ellipsis;
}

.fade-in {
opacity: 0;
transform: translateY(10px);
animation: fadeIn .6s ease-out forwards;
}

@keyframes fadeIn {
to {
opacity: 1;
transform: translateY(0);
}
}

/* Skeleton-loader */
.skeleton {
background: linear-gradient(90deg, #e0e0e0 25%, #f0f0f0 50%, #e0e0e0 75%);
background-size: 200% 100%;
animation: loading 1.5s infinite;
border-radius: 8px;
height: 180px;
}

@keyframes loading {
0% { background-position: 200% 0; }
100% { background-position: -200% 0; }
}

/* Mobile responsive */
@media (max-width: 768px) {
.video-row {
flex-direction: column;
}
.video-card {
width: 100%;
display: none;
}
.video-card:first-child {
display: flex;
}
#show-more-btn {
display: block;
margin: 10px auto;
padding: 8px 16px;
font-size: 16px;
cursor: pointer;
border: none;
border-radius: 5px;
background-color: #007bff;
color: #fff;
}
}
