.profile-videos-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Each card is small and tidy */
.profile-video-card {
    display: flex;
    flex-direction: column;
    width: 200px;              /* smaller than homepage */
    background-color: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.profile-video-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
}

/* Thumbnail area with fixed aspect ratio */
.profile-video-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: #111827; /* dark fallback */
    overflow: hidden;
}

.profile-video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.profile-video-thumb-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #ffffff;
    opacity: 0.8;
}

/* Text info */
.profile-video-info {
    padding: 0.5rem 0.75rem 0.6rem;
}

.profile-video-title {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.3;
    max-height: 2.6em; /* ~2 lines */
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-video-meta {
    margin-top: 0.25rem;
    font-size: 0.75rem;
    color: #6b7280; /* gray-500 */
}


